Auth/login - 404 error


#1

After successful installation I’ve been redirected to auth/login page but there is no such page (404 error). Does anybody know what could be a problem?


#2

Hi,

do you use apache as the webserver? if yes, make sure that mod_rewrite is enabled


#3

Yes, I use apache and mode_rewrite is enabled.


#4

Maybe is something with the session ? Try to log out first… Sounds weird but it happen to me.


#5

does your cockpit installation have its own subdomain?

If not try settings the rewritebase to the cockpit subfolder


#6

make also sure that the AllowOverride directive is correctly set. otherwise .htaccess files don’t work

AllowOverride All

#7

AllowOverride is set to all. By the way there is no .htaccess file in cockpit folder.


#8

there is one: https://github.com/agentejo/cockpit/blob/master/.htaccess

maybe you should enable hidden files before transfering files to your server


#9

You are absolutely right. I added .htaccess and everything works fine. What a stupid mistake :joy:. Thank you for help.