Skip to content

Instantly share code, notes, and snippets.

@rodrigoSyscop
Created July 13, 2015 05:03
Show Gist options
  • Save rodrigoSyscop/0c4b5cdf8eb73f6ca37e to your computer and use it in GitHub Desktop.
Save rodrigoSyscop/0c4b5cdf8eb73f6ca37e to your computer and use it in GitHub Desktop.
Default nginx site configuration
# /usr/local/etc/nginx/sites-available/default
server {
listen 80;
server_name localhost;
root /usr/local/var/www/;
access_log /usr/local/etc/nginx/logs/default.access.log main;
location / {
include /usr/local/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