Port Redirects, Multiple subsonics, and file formats

Need help? Post your questions here.

Moderator: moderators

Port Redirects, Multiple subsonics, and file formats

Postby marksoccer105 » Sat Apr 18, 2009 4:12 am

I have a few questions that I was wondering if someone could answer for me.

First, I have subsonic running through Tomcat5.5 on port 8180. I would like to be able to access it through my apache2 server on port 80 in some fashion. I have tried proxying through apache, but the problem is that if I go to something like http://myserver.com/subsonic/... it redirects to http://myserver.com/index.view which is not a valid file of course.

Second, I would like to be able to run two different copies of subsonic. One for myself and one for a group that I am a part of. Basically, I would like the group to only see a subset of the media that is part of my mine subsonic server. I figured that it would be best to run two subsonic servers, but I may be wrong.

Third, I have been streaming mp4 video using the embedded jw player and tried to stream some m4v files. However, the m4v files will not stream as m4v extensions. If I change the extension to mp4 by simply doing a file rename, the files start streaming. I was wondering if there is any way to make an m4v file stream without actually renaming it.

Thanks,
Mark
marksoccer105
 
Posts: 5
Joined: Sat Apr 18, 2009 4:01 am

Re: Port Redirects, Multiple subsonics, and file formats

Postby jigsaw » Sat Apr 18, 2009 9:29 am

marksoccer105 wrote:First, I have subsonic running through Tomcat5.5 on port 8180. I would like to be able to access it through my apache2 server on port 80 in some fashion. I have tried proxying through apache, but the problem is that if I go to something like http://myserver.com/subsonic/... it redirects to http://myserver.com/index.view which is not a valid file of course.


Use the Apache module mod_proxy.
Just put this config:
Code: Select all
<VirtualHost *:80>
        ServerName myserver.com
        ProxyPass               /server-status  !
        ProxyPass               /server-info    !
        ProxyPass               /subsonic       http://myserver.com:8180/subsonic
        ProxyPassReverse        /subsonic       http://myserver:8180/subsonic
</VirtualHost>


marksoccer105 wrote:Second, I would like to be able to run two different copies of subsonic. One for myself and one for a group that I am a part of. Basically, I would like the group to only see a subset of the media that is part of my mine subsonic server. I figured that it would be best to run two subsonic servers, but I may be wrong.


If you want to do that, which is a brilliant idea by the way ;)
You'd probably have less hassle using the standalone version. Then you'd only need to install two different versions, configure them to use separate ports and setup Apache to redirect e.g. subsonic to myserver.com/8180 and subsonic2 to myserver.com/8181

marksoccer105 wrote:Third, I have been streaming mp4 video using the embedded jw player and tried to stream some m4v files. However, the m4v files will not stream as m4v extensions. If I change the extension to mp4 by simply doing a file rename, the files start streaming. I was wondering if there is any way to make an m4v file stream without actually renaming it.


Settings -> General - > Music mask

-jigsaw
Currently without Subsonic due to hardware failure :(
User avatar
jigsaw
 
Posts: 242
Joined: Sat Oct 13, 2007 12:01 pm
Location: Stavanger, Norway

Postby marksoccer105 » Sat Apr 18, 2009 6:35 pm

Thanks for the reply. You got me on the right track for forwarding to subsonic from port 80 and your method would probably work if I understood what to put for ServerName and where to paste that code segment. I attempted multiple things for ServerName such as localhost and localhost2 and I tried pasting it at the bottom of my apache2.conf file, but could not get it to work right. Upon further research, I was able to find this code segment that worked:

Code: Select all
ProxyRequests Off
<Proxy *>
  Order deny,allow
  Allow from all
</Proxy>

ProxyPass        /subsonic http://localhost:8180/subsonic
ProxyPassReverse /subsonic http://localhost:8180/subsonic


I am still working on the standalone setup and as far as setting Music Mask to include *.m4v, that is what I tried, but when I add the videos to the playlist, they will not play. Thanks
marksoccer105
 
Posts: 5
Joined: Sat Apr 18, 2009 4:01 am


Return to Help

Who is online

Users browsing this forum: No registered users and 7 guests