From f8b3b8ab408a80943030f11de421b09eff9d772b Mon Sep 17 00:00:00 2001 From: Sheppy Date: Wed, 18 Jan 2023 19:01:40 +0100 Subject: [PATCH] fix: typo3 backend/BE login not found 404 --- roles/typo3-cms/templates/default-nginx.conf | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/roles/typo3-cms/templates/default-nginx.conf b/roles/typo3-cms/templates/default-nginx.conf index 9a0c161..c6acf13 100644 --- a/roles/typo3-cms/templates/default-nginx.conf +++ b/roles/typo3-cms/templates/default-nginx.conf @@ -10,13 +10,17 @@ server { root /var/www/atlantishq-cms/public/; location ~ \.php$ { - try_files $uri =404; + try_files $uri $uri/$uri/ /index.php$is_args$args =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; - fastcgi_pass 127.0.0.1:9000; + fastcgi_pass localhost:9000; fastcgi_index index.php; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; - #fastcgi_param PATH_INFO $fastcgi_path_info; add_header X-ATHQ-HANDLER cms always; } + + location /typo3/ { + absolute_redirect off; + try_files $uri /typo3/index.php$is_args$args; + } }