Created
January 10, 2014 15:37
-
-
Save Drvanon/8356520 to your computer and use it in GitHub Desktop.
This file contains 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
user root; | |
worker_processes 1; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
default_type application/octet-stream; | |
sendfile on; | |
keepalive_timeout 65; | |
server { | |
listen 127.0.0.1:80; | |
server_name bgdeverbinding.nl; | |
gzip on; | |
gzip_vary on; | |
gzip_comp_level 6; | |
gzip_proxied any; | |
gzip_types text/css application/x-javascript text/xml application/javascript; | |
gzip_buffers 16 8k; | |
gzip_disable "MSIE [1-6]\.(?!.*SV1)"; | |
location / { | |
root /var/www/poll/; | |
index index.html; | |
try_files $uri $uri/ $uri.html @server_test; | |
} | |
location @server_test { | |
proxy_pass http://127.0.0.1:5000; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment