Welcome! Log In Create A New Profile

Advanced

nginx to auth then proxy_pass?

Posted by mystique 
nginx to auth then proxy_pass?
December 20, 2009 01:16AM
(much thanks to merlincorey for all the help.. dokuwiki is working great now, thanks)

I have nginx setup as an ssl server which is setup to do a proxy_pass to thttpd for the /nagios/ location.

[code]
location /nagios/ {
root /usr/local/www;
index index.php;
auth_basic "Nagios Auth Here Please..";
auth_basic_user_file /usr/local/www/thttpd/nginx-auth-nagios;
}

location /nagios/cgi-bin/ {
proxy_pass http://127.0.0.1:8080/nagios/cgi-bin/;
proxy_redirect default;
}
[/code]

nginx works with asking for auth, but when I get to something in nagios that needs the auth.. I get this message:

appears as though you do not have permission to view process information...

If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI
and check the authorization options in your CGI configuration file.

I understand that I need to proxy_set_header HTTP_AUTH, but I don't know what goes as the third argument..

How would I find that if I have debugging compiled and set in error_log..

Thanks in advance.

nginx version: nginx/0.8.30
thttpd/2.25b 29dec2003
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 115
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready