need help configuring subsonic on vps apache

Need help? Post your questions here.

Moderator: moderators

need help configuring subsonic on vps apache

Postby grx123 » Thu Mar 24, 2011 7:32 pm

So finally managed to get subsonic going on port 4040 on a hosted VPS now I am trying to get it going on port 80 but with no avail. If someone with more apache knowledge could help
Code: Select all
changed the document root to "/var/subsonic/jetty/2169/webapp" from /var/www/html"

is this correct
also changed the
Code: Select all
Document = /var/subsonic/jetty/2169/webapp

but still it will not display any pages. It somehow loads
/index.view page.
Could someone please help me with apache configuration

TIA
Regards
grx123
grx123
 
Posts: 14
Joined: Mon Mar 14, 2011 3:14 pm

Postby nelgin » Thu Mar 24, 2011 7:52 pm

Shouldn't it be DocumentRoot ?
nelgin
 
Posts: 41
Joined: Tue Mar 22, 2011 2:04 pm

Postby grx123 » Thu Mar 24, 2011 8:16 pm

nelgin wrote:Shouldn't it be DocumentRoot ?


yes i did change the document root but it made no difference. Is my document root correct?
grx123
 
Posts: 14
Joined: Mon Mar 14, 2011 3:14 pm

Postby fejao » Thu Mar 31, 2011 3:42 pm

it could help a bit better if you could give more info, like which linux distro, apache version, and all you could give...

normally over the httpd.conf you have to change not only the DocumentRoot, you have to change also its entry:

Code: Select all
DocumentRoot "/var/www/html"

<Directory "/var/www/html">
   Options Indexes FollowSymLinks
   AllowOverride None
   Order allow,deny
   Allow from all
</Directory>


to something like:

Code: Select all
DocumentRoot "/var/subsonic/"

<Directory "/var/subsonic/">
   Options Indexes FollowSymLinks
   AllowOverride None
   Order allow,deny
   Allow from all
</Directory>



as soon i can have more info i can give you more idea where to change the apache config

ps:
i would skip the single apache and do it over a apache+tomcat, with tomcat you can use SSL and it should be what you are looking for a VPS ;)
Subsonic Server:
Running over Pentium III (800Mhz/256Mb RAM)
Xubuntu 10.10 with Apache Tomcat/6.0.28, java 1.6.0_20, Linux (69.1 MB / 91.2 MB)
Library:
668 Artits / 2.127 Albums / 26.631 Songs / 145,54 GB
Users: 7 regular users
User avatar
fejao
 
Posts: 10
Joined: Thu Mar 24, 2011 12:34 am

Postby grx123 » Thu Mar 31, 2011 4:20 pm

sorry for leaving this thread open. I figured it out the solution is to use a reverse proxy. Thanks for the help
grx123
 
Posts: 14
Joined: Mon Mar 14, 2011 3:14 pm

Postby fejao » Thu Mar 31, 2011 5:11 pm

a reverse proxy? to just route the port?
have you heard about iptables?

sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 4040

;)
Subsonic Server:
Running over Pentium III (800Mhz/256Mb RAM)
Xubuntu 10.10 with Apache Tomcat/6.0.28, java 1.6.0_20, Linux (69.1 MB / 91.2 MB)
Library:
668 Artits / 2.127 Albums / 26.631 Songs / 145,54 GB
Users: 7 regular users
User avatar
fejao
 
Posts: 10
Joined: Thu Mar 24, 2011 12:34 am

Postby grx123 » Fri Apr 01, 2011 5:58 pm

I am a newbie to the Linux world and was trying to setup on a VPS box the reverse proxy was the solution that worked so stuck with it but thanks for the enlightenment. If I were to change providers I would definitely use the trick posted but for now it works so I am leaving it alone :lol:
grx123
 
Posts: 14
Joined: Mon Mar 14, 2011 3:14 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 13 guests