Created
February 23, 2017 09:59
-
-
Save liorkesos/ea2a3d51df09825c9bb51b7ef97881b6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name anu.dockerz.linnovate.net; | |
#charset koi8-r; | |
#access_log /var/log/nginx/log/host.access.log main; | |
root /usr/share/nginx/html; | |
#error_page 404 /404.html; | |
# 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; | |
} | |
# proxy the PHP scripts to Apache listening on 127.0.0.1:80 | |
# | |
location / { | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $remote_addr; | |
proxy_set_header Host $host; | |
#proxy_pass http://10.1.79.1:1004; | |
proxy_pass http://10.1.79.1:1006; | |
} | |
location ~ /\.ht {return 404;} | |
location ~ /\.svn/ {return 404;} | |
location ~ /\.git/ {return 404;} | |
location ~ /\.hg/ {return 404;} | |
location ~ /\.bzr/ {return 404;} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment