Why am I getting 404 on login?

I have installed Cockpitjs on Nginx and I get https://mydomain.ltd/auth/login?to=/ which shows as 404. What am I missing here?

It could be Nginx config problem. Check the config here

And make sure PHP version 7.3+ and SQLite are installed in your server.

If you are running an apache webserver, try commenting “RewriteBase /” back in within the .htaccess