Skip to content

Instantly share code, notes, and snippets.

@jonajgs
Created October 4, 2017 20:59
Show Gist options
  • Save jonajgs/9d13b98c48049b4807182c59c359f4e7 to your computer and use it in GitHub Desktop.
Save jonajgs/9d13b98c48049b4807182c59c359f4e7 to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name server.com;
location / {
root /public/path/;
index index.html index.htm index.php;
}
location ~ \.php$ {
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
root /location/path;
include fastcgi.conf;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment