I started using nginx as a front-end in order to standardize my services access via sub-domains. It works well for pydio and webmail (RainLoop, very good), but Subsonic doesn’t log in.
There is no error message, it just returns to log in page instead of showing my music library.
See attached that even the colours and format of the front page is different (right version) compared to direct access (left version).
What am I doing wrong? I browse the forum and people with more complex setup (SSL, for example) where able to put nginx proxy for Subsonic up and running.
My setup is:
- Subsonic server
- HP microserver at home
- Ubuntu 13.10 x64
- Subsonic 4.9.beta2 (build 3634)
- Apache Tomcat/6.0.37, java 1.7.0_25
- Nginx server
- Digital Ocean cheap server (512MB, 20GB SSD)
- Ubuntu 13.10 x64
- nginx version: nginx/1.4.1 (Ubuntu)
TLS SNI support enabled
configure arguments: --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-log-path=/var/log/nginx/access.log --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --with-pcre-jit --with-debug --with-http_addition_module --with-http_dav_module --with-http_geoip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_realip_module --with-http_stub_status_module --with-http_ssl_module --with-http_sub_module --with-http_xslt_module --with-ipv6 --with-mail --with-mail_ssl_module --add-module=/build/buildd/nginx-1.4.1/debian/modules/nginx-auth-pam --add-module=/build/buildd/nginx-1.4.1/debian/modules/nginx-dav-ext-module --add-module=/build/buildd/nginx-1.4.1/debian/modules/nginx-echo --add-module=/build/buildd/nginx-1.4.1/debian/modules/nginx-upstream-fair --add-module=/build/buildd/nginx-1.4.1/debian/modules/ngx_http_substitutions_filter_module
server {
listen 80;
server_name pydio.mydomain.com;
location / {
proxy_pass http://aaa.bbb.ccc.ddd:9090/pydio/;
}
}
server {
listen 80;
server_name subsonic.mydomain.com;
location / {
proxy_pass http://aaa.bbb.ccc.ddd:8070/subsonic/;
}
}
server {
listen 80;
server_name webmail.mydomain.com;
location / {
proxy_pass http://aaa.bbb.ccc.ddd:9090/webmail/;
}
}