Project

General

Profile

[SOLVED] Redirect to another port with basic authentication

Added by anstri over 4 years ago

Hi all,

My Lighttpd ver 1.4.54 listens on port 8082. I want to redirect all requests to port 8081 where a Jetty webserver listens with Basic autentication. I want to add Authentication header in redirect request to automatically log in there.

Thus, I want to redirect "http:www.mywebserver.com:8082/?someparams" (Lighttpd) to "http:www.mywebserver.com:8081/?someparams" (Jetty with Basic Authentication) and want to be automatically logged in without having typing username/password.

Everything works except for the auto login. The Basic authentication dialog keeps showing asking for username and password.

I've supplied my lighttpd.conf. Can anyone see what´s wrong? The grey-marked line is the one that doesn´t seem to apply.

Thank´s in advance

lighttpd.gif (38.9 KB) lighttpd.gif lighttpd.conf

Replies (2)

RE: Redirect to another port with basic authentication - Added by anstri over 4 years ago

SOLVED

My bad, there was a typo. There should be no comma at the end of the "setenv..." line.

RE: [SOLVED] Redirect to another port with basic authentication - Added by gstrauss over 4 years ago

Thanks for the update.

I was going to suggest setenv, but I do not look at .gif of textual configuration files (i.e. lighttpd.conf for which you posted lighttpd.gif). If you do post in the future, please do not post images of text. Post the text. Thank you.

    (1-2/2)