Welcome! Log In Create A New Profile

Advanced

Re: auth_basic "pass through"

Francis Daly
September 25, 2012 05:36PM
On Tue, Sep 25, 2012 at 03:01:15PM -0400, AJ Weber wrote:

Hi there,

> I'm having trouble setting up nginx in front of tomcat to handle ssl and
> reverse proxy/caching.

===
server {
location / {
proxy_pass http://127.0.0.1:10080/;
}
}
===

seems to work for me, at least for the auth_basic "pass through" part.

What trouble are you seeing?

(nginx -V, nginx.conf, url you request, response you get, response
you expect?)

> Basically the webapp behind nginx uses http authentication (browser
> prompts, not a webpage login), and I think what's happening is that
> handshake/traffic is not getting back and forth for the initial
> connection. The authentication is performed against a custom
> implementation, so I can't just remove it and move it to a passwd file.

If the backend returns http 401, then nginx should send that to the
client, which it does for me with

WWW-Authenticate: Basic realm="dir".

In this case, nginx doesn't use auth_basic at all, and doesn't care what
the back end does to decide whether to send 401 or 200.

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

auth_basic "pass through"

aweber September 25, 2012 03:02PM

Re: auth_basic "pass through"

Francis Daly September 25, 2012 05:36PM

Re: auth_basic "pass through"

aweber September 25, 2012 09:14PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 143
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready