Skip to content

Instantly share code, notes, and snippets.

@Ivoz
Created October 31, 2011 10:47
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 Ivoz/1327267 to your computer and use it in GitHub Desktop.
Save Ivoz/1327267 to your computer and use it in GitHub Desktop.
server {
server_name localhost;
listen 127.0.0.1:80;
root /home/ivo/www/home;
index index.php index.html;
error_log /home/ivo/www/errors/home.log;
access_log /home/ivo/www/access/home.log;
location /phpmyadmin {
alias /usr/share/phpmyadmin;
allow 127.0.0.1;
deny all;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment