Created
April 8, 2013 01:46
-
-
Save JasonMKurtz/5333581 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
server { | |
listen 198.211.104.30:80; ## listen for ipv4; this line is default and implied | |
root /home/ziber/public_html/load.liber.in; | |
index load.php; | |
server_name load.liber.in; | |
access_log /var/log/nginx/load.liber.in/access.log; | |
error_log /var/log/nginx/load.liber.in/error.log; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
location / { | |
# try_files $uri $uri/; | |
proxy_pass http://nodes; | |
} | |
location ~ \.php$ { | |
fastcgi_split_path_info ^(.+\.php)(/.+)$; | |
fastcgi_pass unix:/var/run/php5-fpm.sock; | |
fastcgi_index index.php; | |
include fastcgi_params; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment