Skip to content

Instantly share code, notes, and snippets.

@brandontamm
Created April 28, 2014 22:21
Show Gist options
  • Save brandontamm/11385731 to your computer and use it in GitHub Desktop.
Save brandontamm/11385731 to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name example.dev;
root /var/www/example.dev/;
access_log /var/log/nginx/access_example.log main;
location / {
include /etc/nginx/conf.d/php-fpm;
}
location = /info {
allow 127.0.0.1;
deny all;
rewrite (.*) /.info.php;
}
error_page 404 /404.html;
error_page 403 /403.html;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment