From dfa92b664064c3a619f70583d2aea2add5254305 Mon Sep 17 00:00:00 2001 From: Boudewijn Date: Sat, 1 Mar 2025 16:18:38 +0100 Subject: [PATCH] tweak conf/nginx.conf - add rewrite for seemingly erronous redirect to /usr/share/nginx by laravel auth.php to login/register --- conf/nginx.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conf/nginx.conf b/conf/nginx.conf index d34ecb9..f3f0851 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,5 +1,8 @@ # I'm unable to get it to work in a subdir; disable for now #rewrite ^/__PATH__$ /__PATH__/ permanent; +# try redirecting stuff to index.php +rewrite ^(.*)$ /index.php$1 last; + location / { #alias /var/www/__APP__/public/;