Skip to content

Instantly share code, notes, and snippets.

@iamdylanngo
Created May 4, 2019 10:34
Show Gist options
  • Save iamdylanngo/5de256adc62483caf52e606d37b252d9 to your computer and use it in GitHub Desktop.
Save iamdylanngo/5de256adc62483caf52e606d37b252d9 to your computer and use it in GitHub Desktop.
default.conf
server {
listen 80;
index index.php;
server_name test.local;
root /var/www/test;
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment