Update the nginx configuration for nested sub-directory support
This commit is contained in:
parent
d084ad933a
commit
7f2504fe4c
1 changed files with 3 additions and 6 deletions
|
@ -12,15 +12,12 @@ server {
|
||||||
index index.php;
|
index index.php;
|
||||||
|
|
||||||
# try to serve file directly, fallback to index.php
|
# try to serve file directly, fallback to index.php
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri /index.php$is_args$args;
|
try_files $uri $uri/ /index.php$is_args$args =404;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!-e $request_filename) {
|
location ~ ^.+.php {
|
||||||
rewrite ^.*$ /index.php last;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \.php$ {
|
|
||||||
fastcgi_pass php-fpm:9000;
|
fastcgi_pass php-fpm:9000;
|
||||||
fastcgi_index index.php;
|
fastcgi_index index.php;
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||||
|
|
Loading…
Reference in a new issue