Created
May 21, 2014 09:51
-
-
Save Blacksly/9f53d77a7d587e70b10f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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