Changing madsonic port and more.

Need help? Post your questions here.

Changing madsonic port and more.

Unread postby pavs » 26 May 2014, 13:37

There are are actually two problem I am trying to solve and would love some help in it.

I have an ubuntu server running apache on port 80 and madsonic on its default configuration on port 4040.

- I want to put madsonic on a subdirectory without having to mention the port like this : mydomain.com/stream/ how would I do it ?

- Clicking on the madsonic logo loads up the about section frame in the middle. This is the default behavior. I trying to make it so that clicking on the logo behaves the same way clicking "Home" button does. For some reasons its not happening even thoughI edited the code placed in: /var/madsonic/jetty/3830/webapp/WEB-INF/jsp/top.jsp and it doesn't seem to make any difference. Am I missing something?

Thanks for any help.
pavs
 
Posts: 2
Joined: 22 Apr 2014, 18:29
Has thanked: 0 time
Been thanked: 0 time

Re: Changing madsonic port and more.

Unread postby plytro » 15 Jul 2014, 21:06

Use modproxy and add this to your apache config file

Code: Select all
ProxyPass /subsonic http://localhost:4040/subsonic
ProxyPassReverse /subsonic http://localhost:4040/subsonic
plytro
 
Posts: 3
Joined: 15 Jul 2014, 19:14
Has thanked: 0 time
Been thanked: 0 time

Re: Changing madsonic port and more.

Unread postby plytro » 16 Jul 2014, 20:47

I forgot that you'll also need to pass
Code: Select all
--context-path=/stream
on the command line so it is aware it is in a subpath.
plytro
 
Posts: 3
Joined: 15 Jul 2014, 19:14
Has thanked: 0 time
Been thanked: 0 time

Re: Changing madsonic port and more.

Unread postby plytro » 16 Jul 2014, 20:52

If you edited the code while the server was running on top.jsp it may not pickup the change. I'm not sure how/if/when the jetty container will recompile a jsp.
plytro
 
Posts: 3
Joined: 15 Jul 2014, 19:14
Has thanked: 0 time
Been thanked: 0 time


Return to Support 5.x

Who is online

Users browsing this forum: No registered users and 1 guest