Created
June 23, 2016 20:21
-
-
Save sandorTuranszky/e75370cb9fe7d22db1cf343d9d5e301f 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
| http { | |
| upstream developers_upstream { | |
| server 127.0.0.1:9000; | |
| keepalive 64; | |
| } | |
| server { | |
| listen 80; | |
| server_name developers.local.com; | |
| access_log /var/log/nginx/access.log; | |
| error_log /var/log/nginx/error.log; | |
| root /var/www/client/developers; | |
| location ~ ^/(components/|app/|bower_components/|assets/|robots.txt|humans.txt|favicon.ico) { | |
| root /; | |
| try_files /var/www/.tmp/developers$uri /var/www/client/developers$uri =404; | |
| access_log off; | |
| } | |
| location / { | |
| proxy_redirect off; | |
| proxy_set_header X-Real-IP $remote_addr; | |
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
| proxy_set_header X-Forwarded-Proto $scheme; | |
| proxy_set_header Host $http_host; | |
| proxy_set_header X-NginX-Proxy true; | |
| proxy_set_header Connection ""; | |
| proxy_http_version 1.1; | |
| proxy_pass http://developers_upstream; | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment