# Auth/login - 404 error

**URL:** https://discourse.getcockpit.com/t/auth-login-404-error/469
**Category:** Support
**Created:** [December 19, 2018, 6:01pm UTC](https://discourse.getcockpit.com/t/auth-login-404-error/469 "2018-12-19T18:01:19Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![bagahunda](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/bagahunda/32/191_2.png) [@bagahunda](https://discourse.getcockpit.com/u/bagahunda)
#### Post date: [December 19, 2018, 6:01pm UTC](https://discourse.getcockpit.com/t/auth-login-404-error/469/1 "2018-12-19T18:01:19Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![artur](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/artur/32/4_2.png) [@artur](https://discourse.getcockpit.com/u/artur)
#### Post date: [December 19, 2018, 6:06pm UTC](https://discourse.getcockpit.com/t/auth-login-404-error/469/2 "2018-12-19T18:06:42Z")

</div>

Hi,

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

---

<div class="post-metadata">

### Author: ![bagahunda](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/bagahunda/32/191_2.png) [@bagahunda](https://discourse.getcockpit.com/u/bagahunda)
#### Post date: [December 19, 2018, 6:11pm UTC](https://discourse.getcockpit.com/t/auth-login-404-error/469/3 "2018-12-19T18:11:04Z")

</div>

Yes, I use apache and mode\_rewrite is enabled.

---

<div class="post-metadata">

### Author: ![Hurdock](https://avatars.discourse-cdn.com/v4/letter/h/ad7895/32.png) [@Hurdock](https://discourse.getcockpit.com/u/Hurdock)
#### Post date: [December 19, 2018, 6:23pm UTC](https://discourse.getcockpit.com/t/auth-login-404-error/469/4 "2018-12-19T18:23:08Z")

</div>

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

---

<div class="post-metadata">

### Author: ![serjoscha87](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/serjoscha87/32/151_2.png) [@serjoscha87](https://discourse.getcockpit.com/u/serjoscha87)
#### Post date: [December 19, 2018, 7:08pm UTC](https://discourse.getcockpit.com/t/auth-login-404-error/469/5 "2018-12-19T19:08:49Z")

</div>

does your cockpit installation have its own subdomain?

If not try settings the rewritebase to the cockpit subfolder

---

<div class="post-metadata">

### Author: ![artur](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/artur/32/4_2.png) [@artur](https://discourse.getcockpit.com/u/artur)
#### Post date: [December 19, 2018, 8:00pm UTC](https://discourse.getcockpit.com/t/auth-login-404-error/469/6 "2018-12-19T20:00:28Z")

</div>

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

```auto
AllowOverride All

```

---

<div class="post-metadata">

### Author: ![bagahunda](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/bagahunda/32/191_2.png) [@bagahunda](https://discourse.getcockpit.com/u/bagahunda)
#### Post date: [December 20, 2018, 8:41am UTC](https://discourse.getcockpit.com/t/auth-login-404-error/469/7 "2018-12-20T08:41:16Z")

</div>

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

---

<div class="post-metadata">

### Author: ![artur](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/artur/32/4_2.png) [@artur](https://discourse.getcockpit.com/u/artur)
#### Post date: [December 20, 2018, 9:55am UTC](https://discourse.getcockpit.com/t/auth-login-404-error/469/8 "2018-12-20T09:55:45Z")

</div>

there is one: [https://github.com/agentejo/cockpit/blob/master/.htaccess](https://github.com/agentejo/cockpit/blob/master/.htaccess)

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

---

<div class="post-metadata">

### Author: ![bagahunda](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/bagahunda/32/191_2.png) [@bagahunda](https://discourse.getcockpit.com/u/bagahunda)
#### Post date: [December 20, 2018, 11:17am UTC](https://discourse.getcockpit.com/t/auth-login-404-error/469/9 "2018-12-20T11:17:32Z")

</div>

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