Skip to content

Instantly share code, notes, and snippets.

@bistoco
Created July 21, 2017 22:46
Show Gist options
  • Save bistoco/7e8a965ee7838c1bb57954631b6d6a64 to your computer and use it in GitHub Desktop.
Save bistoco/7e8a965ee7838c1bb57954631b6d6a64 to your computer and use it in GitHub Desktop.
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