Enabling HTTPS when using java webserver...

Need help? Post your questions here.

Moderator: moderators

Enabling HTTPS when using java webserver...

Postby fdullemond » Thu Mar 31, 2011 12:15 pm

I have successfully installed subsonic on a readynas, and I want to enable HTTPS for subsonic. Unfortunately the standard method of customizing the /etc/subsonic config file does not work.

On the readynas the subsonic server gets started by using following command line:

/c/webroot/subsonic/jre1.6.0_20/bin/java -Xmx700m -Dsubsonic.home=/c/webroot/subsonic -Dsubsonic.host=0.0.0.0 -Dsubsonic.port=4040 -Dsubson..........

Subsonic is started through a shell program which ultimately calls:


Code: Select all
           /c/webroot/subsonic/jre1.6.0_20/bin/java -Xmx${SUBSONIC_MAX_MEMORY}m \
                -Dsubsonic.home=${SUBSONIC_HOME} \
                -Dsubsonic.host=${SUBSONIC_HOST} \
                -Dsubsonic.port=${SUBSONIC_PORT} \
                -Dsubsonic.contextPath=${SUBSONIC_CONTEXT_PATH} \
                -Dsubsonic.defaultMusicFolder=${SUBSONIC_DEFAULT_MUSIC_FOLDER} \
                -Dsubsonic.defaultPodcastFolder=${SUBSONIC_DEFAULT_PODCAST_FOLDER} \
                -Dsubsonic.defaultPlaylistFolder=${SUBSONIC_DEFAULT_PLAYLIST_FOLDER} \
                -jar /c/webroot/subsonic/subsonic-booter-jar-with-dependencies.jar > ${LOG} 2>&1 &[/i]



In order to enable HTTPS I changed the port line to


Code: Select all
                -Dsubsonic.httpsPort=${SUBSONIC_PORT} \


Which seems to work fine, and a https connection is used. However following error occurs:


Code: Select all
                     HTTP ERROR: 404
                     NOT_FOUND
                     RequestURI=/login.view
                     Powered by jetty://

So apparently other flags need changing as well.

Anyone can explain which flags I need to add/exchange to make HTTPS working ?

Thanks,

Fred
fdullemond
 
Posts: 4
Joined: Thu Mar 31, 2011 11:16 am

Return to Help

Who is online

Users browsing this forum: No registered users and 31 guests