(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