Skip to content

Instantly share code, notes, and snippets.

@bkintanar
Created April 28, 2019 16:45
Show Gist options
  • Save bkintanar/2e48d6700ea3cff8aaa5feb806743931 to your computer and use it in GitHub Desktop.
Save bkintanar/2e48d6700ea3cff8aaa5feb806743931 to your computer and use it in GitHub Desktop.
server {
location / {
root /var/www/public;
index index.php index.html index.htm;
try_files $uri $uri/ /index.php?$args;
}
location ~ [^/]\.php(/|$) {
root /var/www/public;
fastcgi_index index.php;
fastcgi_pass php:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
include fastcgi_params;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment