Skip to content

Instantly share code, notes, and snippets.

@bsdlp
Created April 27, 2013 19:26
Show Gist options
  • Save bsdlp/5474349 to your computer and use it in GitHub Desktop.
Save bsdlp/5474349 to your computer and use it in GitHub Desktop.
because anchor is weird
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