I installed Subsonic on Ubuntu 14.04 behind a Nginx reverse-proxy handling an SSL tunneling through the common port 443.
A direct connection to Subsonic without the Nginx reverse proxy works just fine:
- Code: Select all
http://{IP}:4040/subsonic
The SSL connection through Nginx works only if the login page is specified in the url:
- Code: Select all
https://{IP}/subsonic/login.view?
If I remove the login page in the url such as below, I get a 404 error "The requested URL /subsonic/ was not found on this server."
- Code: Select all
https://{IP}/subsonic
Of course, I would want to use this last fancy URL on a daily basis. Is there anyone with a hunch on what's wrong ?
Here is my subsonic configuration:
- Code: Select all
$ cat /etc/default/subsonic
SUBSONIC_ARGS="--context-path=/subsonic --port=4040 --https-port=0 --max-memory=300"
SUBSONIC_USER=www-data
and my Nginx reverse proxy configuration:
- Code: Select all
$ cat /etc/nginx/sites-enabled/proxy_ssl.conf
server {
listen 443;
root /var/www/;
index index.php index.html index.htm;
server_name {server.net};
ssl on;
ssl_certificate {crt_path};
ssl_certificate_key {key_path};
location /subsonic {
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:4040;
}
}
Thank you !