Skip to content

Instantly share code, notes, and snippets.

@varunyellina
Last active October 7, 2015 17:22
Show Gist options
  • Save varunyellina/43bd692cd9eb66076332 to your computer and use it in GitHub Desktop.
Save varunyellina/43bd692cd9eb66076332 to your computer and use it in GitHub Desktop.
Nginx configuration for default site
server {
listen 80;
server_name localhost;
root /Users/varunyellina/Sites/;
access_log /usr/local/etc/nginx/logs/default.access.log;
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