How to use HTTP authentication
Version: 4.7 (build 3105) – September 11, 2012
Server: jetty-6.1.x, java 1.6.0_24, Linux (62.5 MB / 87.3 MB)
I am running Ubuntu 12.04.1.
I have nginx set up as a proxy to subsonic so I don't have to deal with port numbers. I wanted to also set up HTTP auth through nginx but am having difficulty getting it working.
I have basic auth working on the nginx side, but when I use it with subsonic I'm prompted with a second 'Authentication Required' box with 'Subsonic' as the realm. If I cancel this second box I see the following:
My nginx configuration is as follows:
Server: jetty-6.1.x, java 1.6.0_24, Linux (62.5 MB / 87.3 MB)
I am running Ubuntu 12.04.1.
I have nginx set up as a proxy to subsonic so I don't have to deal with port numbers. I wanted to also set up HTTP auth through nginx but am having difficulty getting it working.
I have basic auth working on the nginx side, but when I use it with subsonic I'm prompted with a second 'Authentication Required' box with 'Subsonic' as the realm. If I cancel this second box I see the following:
- Code: Select all
HTTP ERROR: 401
LDAP authentication disabled.
RequestURI=/music/
Powered by Jetty://
My nginx configuration is as follows:
- Code: Select all
location /music/ {
auth_basic "Music";
proxy_pass localhost:4040;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}