Skip to content

Instantly share code, notes, and snippets.

@Blacksly
Created May 21, 2014 09:51

Revisions

  1. Blacksly created this gist May 21, 2014.
    21 changes: 21 additions & 0 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    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;
    }
    }