Last active
December 26, 2019 10:25
-
-
Save goranmoomin/4d2e124f4b15263ee8d41abd4a1e7244 to your computer and use it in GitHub Desktop.
English Survey Project NGINX configuration
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 8001; | |
server_name english-survey; | |
charset utf-8; | |
root $PWD; | |
location ~ ^/(auth|master|survey) { | |
proxy_redirect off; | |
proxy_http_version 1.1; | |
proxy_pass http://localhost:8000; | |
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