Skip to content

Instantly share code, notes, and snippets.

@kamrankr
Last active August 29, 2015 14:22
Show Gist options
  • Save kamrankr/1e4781d3967c4d3b3d3d to your computer and use it in GitHub Desktop.
Save kamrankr/1e4781d3967c4d3b3d3d to your computer and use it in GitHub Desktop.
server
{
root /var/www/html;
location /
{
index index.php index.html index.htm;
}
location ~ \.php$
{
fastcgi_pass 127.0.0.0.1:9000
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/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