Update the nginx configuration for nested sub-directory support

This commit is contained in:
Alex Tselegidis 2023-07-07 12:41:02 +02:00
parent d084ad933a
commit 7f2504fe4c

View file

@ -12,15 +12,12 @@ server {
index index.php;
# try to serve file directly, fallback to index.php
location / {
try_files $uri /index.php$is_args$args;
try_files $uri $uri/ /index.php$is_args$args =404;
}
if (!-e $request_filename) {
rewrite ^.*$ /index.php last;
}
location ~ \.php$ {
location ~ ^.+.php {
fastcgi_pass php-fpm:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;