# Cannot reach login page with nginx reverse proxy basic auth

**URL:** <https://forum.xwiki.org/t/cannot-reach-login-page-with-nginx-reverse-proxy-basic-auth/6482>\
**Category:** Help / Discuss\
**Tags:** authentication, reverse-proxy, nginx\
**Created:** [March 16, 2020, 11:20am UTC](https://forum.xwiki.org/t/cannot-reach-login-page-with-nginx-reverse-proxy-basic-auth/6482 "2020-03-16T11:20:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![okisir](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/o/5daacb/32.png) [@okisir](https://forum.xwiki.org/u/okisir)\
**Post date:** [March 16, 2020, 11:20am UTC](https://forum.xwiki.org/t/cannot-reach-login-page-with-nginx-reverse-proxy-basic-auth/6482/1 "2020-03-16T11:20:17Z")

</div>

Hi everyone.  
I’m experiencing a strange problem with login page. Different behaviour exists when i use firefox and chromium. With FF no problem, but with chromium yes.

My xwiki setup is the following:

nginx reverse proxy + basic auth —\> xwiki

So when i connect to xwiki main page the authentication prompt of nginx appears and I can “log in with nginx credentials” and display without problem the home page. But when i try to reach the login page a blank page is shown. I debugged a little through the network console and i saw that my request to login page return http 401 error. I noticed that is the default response code returned by page when unauthenticated user try to login, but i think that this can broke whole authentication process started with nginx basic auth. In fact if i try to reload the page the authentication prompt of nginx appears again.

How can i solve this issue?

Thanks in advance
