I tried to secure my mautic installation by adding a htpasswd on its login page.
I’m using Nginx, so the configuration setting has been placed as following:
It works. When entering my Mautic site it prompts me with the credentials popup. But when I enter the credentials I see a 404 page.
And looking on the error.log this is the statement:
"/var/www/'sitedomain.com'/htdocs/s/login" failed (2: No such file or directory)...
If I remove the location and htaccess location from the config file it works fine.
Does anyone have a clue here? It seems looking for content inside the '...htdocs/s/login' which doesn't seem right. But I'm not sure where to point to the correct location.