proxy_read_timeout 700;
}
location ~ /(admin/.*|test) {
auth_basic "Restricted";
auth_basic_user_file conf/htpasswd;
proxy_pass http://127.0.0.1:9930; # tried both with
and without this line
}
I essentially want to protect my admin directory along with the test
page, but when I have this location module, I am getting 403 forbidden
on my webapp for the admin directory and test page.
location ~ /(admin/.*|test) {
auth_basic “Restricted”;
auth_basic_user_file conf/htpasswd;
proxy_pass http://127.0.0.1:9930; # tried both with and without this
line
}
I essentially want to protect my admin directory along with the test
page, but when I have this location module, I am getting 403 forbidden
on my webapp for the admin directory and test page.
Thanks.[/quote]
Sorry, the proxy_pass in both location modules is supposed to be the
same port, I was doing some messing around and forgot to change them to
be the same.