Skip to content

Instantly share code, notes, and snippets.

@tiagodavi
Created May 1, 2012 22:52
Show Gist options
  • Save tiagodavi/2572123 to your computer and use it in GitHub Desktop.
Save tiagodavi/2572123 to your computer and use it in GitHub Desktop.
ngnix.conf
location / {
root html;
index index.html index.php index.htm;
}
location ~ .php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME c:/nginx/html/$fastcgi_script_name;
include fastcgi_params;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment