Skip to content

Instantly share code, notes, and snippets.

@gnunicorn
Forked from bsdlp/anchor.conf
Last active December 16, 2015 17:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gnunicorn/5474352 to your computer and use it in GitHub Desktop.
Save gnunicorn/5474352 to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name ;
root /srv/www/anchor;
index index.php index.html;
try_files $uri $uri/ /index.php;
autoindex off;
location ~ \.php {
include fastcgi_params;
fastcgi_index index.php;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass unix:/var/run/php-fpm.sock;
fastcgi_intercept_errors off;
}
location ~ /\.ht {
deny all;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment