Last active
December 9, 2015 00:12
-
-
Save andrealbinop/82d95b3412df008748c2 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 localhost; | |
proxy_headers_hash_bucket_size 128; | |
proxy_headers_hash_max_size 1024; | |
proxy_set_header Host $host; | |
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 Cache-Control no-cache; | |
proxy_set_header Pragma no-cache; | |
proxy_set_header Expires 0; | |
proxy_max_temp_file_size 0; | |
proxy_read_timeout 120; | |
proxy_connect_timeout 120; | |
sendfile off; | |
proxy_buffering off; | |
client_max_body_size 100M; | |
location /appdir { | |
root /; | |
index /index.html; | |
rewrite ^[^\.]+$ /appdir/index.html last; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment