Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name <DOMAIN0.LTD>; # domain on ip.ip.ip.ip
- server_name <DOMAIN1.LTD>; # other domain on ip.ip.ip.ip
- server_name <*.DOMAIN2.LTD>; # wildcard domain proxy on ip.ip.ip.ip
- access_log /var/log/nginx/<DOMAIN.LTD>_http_access.log;
- error_log /var/log/nginx/<DOMAIN.LTD>_http_error.log;
- location / {
- proxy_pass http://<ip.ip.ip.ip>; # Enter bachend server ip here
- }
- # redirect server error pages to the static page /50x.html
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- root /usr/share/nginx/html;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement