Skip to content

Instantly share code, notes, and snippets.

@spinx
Forked from tjstein/nginx-vhost.conf
Last active August 29, 2015 14:02
Show Gist options
  • Save spinx/186a5d1adc33010fe1a3 to your computer and use it in GitHub Desktop.
Save spinx/186a5d1adc33010fe1a3 to your computer and use it in GitHub Desktop.
server {
server_name rr.lan www.rr.lan;
access_log /var/www/rr.lan/log/access.log;
error_log /var/www/rr.lan/log/error.log;
root /var/www/rr.lan/webdir;
index index.php;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
try_files $uri =404;
include fastcgi_params;
fastcgi_pass unix:/var/run/php-fpm-www.sock;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment