Apache ProxyPass/ProxyPassReverse with other services?
Posted: Mon Feb 10, 2014 2:31 pm
Hi everyone!
I've been trying to proxy some other services through Apache, with limited success. So I hope someone in here knows what to do.. Lemme break it down:
I have Transmission, Icecast2 and EtherCalc running alongside a regular Apache install. I looked up if I could someone patch Transmission's web-interface through to Apache and yes, it turned out some modules and reconfiguring of Apache would do just that. And it worked! So I figured I could do the same with Icecast and EtherCalc right? Well, kinda... When I go to example.com/icecast, it works. Then I click a link and it translates the link to example.com/link (giving me a 404) instead of example.com/icecast/link. I just can't get the service to stay in it's designated directory! Same applies to trying to do this with EtherCalc (Node.JS).
This is what I have in /etc/apache2/sites-available/default:
I tried trailing slashes, putting /icecast behind localhost:8000, commenting out proxypass, commenting out reverse, and in different combinations. No luck. What am I doing wrong? :3
I've been trying to proxy some other services through Apache, with limited success. So I hope someone in here knows what to do.. Lemme break it down:
I have Transmission, Icecast2 and EtherCalc running alongside a regular Apache install. I looked up if I could someone patch Transmission's web-interface through to Apache and yes, it turned out some modules and reconfiguring of Apache would do just that. And it worked! So I figured I could do the same with Icecast and EtherCalc right? Well, kinda... When I go to example.com/icecast, it works. Then I click a link and it translates the link to example.com/link (giving me a 404) instead of example.com/icecast/link. I just can't get the service to stay in it's designated directory! Same applies to trying to do this with EtherCalc (Node.JS).
This is what I have in /etc/apache2/sites-available/default:
Code: Select all
<Directory /var/www/icecast>
AllowOverride All
Order deny,allow
Allow from all
</Directory>
ProxyRequests Off
ProxyPass /icecast http://localhost:8000
ProxyPassReverse /icecast http://localhost:8000