Last active
January 22, 2016 15:58
-
-
Save denys281/8931903 to your computer and use it in GitHub Desktop.
symfony2 nginx virtual host (proxy for apache2)
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 mysite.com; | |
access_log /home/user/sites/mysite.com/nginx-log/access.log; | |
access_log /home/user/sites/mysite.com/nginx-log/error.log; | |
location / { | |
proxy_pass http://backend/; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $remote_addr; | |
proxy_connect_timeout 120; | |
proxy_send_timeout 120; | |
proxy_read_timeout 180; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment