Skip to content

Instantly share code, notes, and snippets.

@Blacksly
Created May 21, 2014 09:51
Show Gist options
  • Save Blacksly/9f53d77a7d587e70b10f to your computer and use it in GitHub Desktop.
Save Blacksly/9f53d77a7d587e70b10f to your computer and use it in GitHub Desktop.
server
{
root /var/www/www.kpi.com;
index index.php;
server_name www.kpi.com;
access_log /var/log/nginx/kpi-access_log;
error_log /var/log/nginx/kpi-error_log;
location /
{
try_files $uri $uri/ /index.html;
}
location ~ \.php$
{
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/www.kpi.com$fastcgi_script_name;
include fastcgi_params;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment