Skip to content

Instantly share code, notes, and snippets.

@JasonMKurtz
Created April 8, 2013 01:46
Show Gist options
  • Save JasonMKurtz/5333581 to your computer and use it in GitHub Desktop.
Save JasonMKurtz/5333581 to your computer and use it in GitHub Desktop.
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