Created
July 21, 2017 22:46
-
-
Save bistoco/7e8a965ee7838c1bb57954631b6d6a64 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 | |
{ | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
root /var/www/web/public; | |
index index.html index.htm index.nginx-debian.html; | |
server_name kerberos.rpi kerberos.rpi; | |
index index.php index.html index.htm; | |
location / | |
{ | |
autoindex on; | |
try_files $uri $uri/ /index.php?$query_string; | |
} | |
location ~ \.php$ | |
{ | |
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
include fastcgi_params; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment