Basicauth and proxy?

Hi, I am trying to add an authentication prompt to an admin page on my website (url/admin). I am proxying the server running on port 4000 to Caddy running on port 80. The site runs as expected, but there is not authentication popup when I go to the /admin page. Am I configuring something wrong? Thank you.

Caddyfile:

[url]
basicauth /admin Bob hiccup
proxy / [url]:4000
gzip

It has been working for me now. I wonder if there was some issue with the page being cached in my browser?

Once you put in your details once, most modern browsers will cache the outgoing auth header and resend it whenever you visit the site, which will in effect stop the popup.

Visit your site in private/incognito mode and it should request your credentials again.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.