Page 1 of 1

need help configuring subsonic on vps apache

PostPosted: Thu Mar 24, 2011 7:32 pm
by grx123
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

PostPosted: Thu Mar 24, 2011 7:52 pm
by nelgin
Shouldn't it be DocumentRoot ?

PostPosted: Thu Mar 24, 2011 8:16 pm
by grx123
nelgin wrote:Shouldn't it be DocumentRoot ?


yes i did change the document root but it made no difference. Is my document root correct?

PostPosted: Thu Mar 31, 2011 3:42 pm
by fejao
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 ;)

PostPosted: Thu Mar 31, 2011 4:20 pm
by grx123
sorry for leaving this thread open. I figured it out the solution is to use a reverse proxy. Thanks for the help

PostPosted: Thu Mar 31, 2011 5:11 pm
by fejao
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

;)

PostPosted: Fri Apr 01, 2011 5:58 pm
by grx123
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: