rejetto forum

Software => HFS ~ HTTP File Server => router & port problems => Topic started by: DArKer on April 10, 2011, 03:16:09 PM

Title: Reverse Proxy with HFS
Post by: DArKer on April 10, 2011, 03:16:09 PM
I just want to access HFS from port 80 but Apache already use it.
So I try to edit Apache's httpd.conf for Reverse Proxy but still working (return 500 server error).

My Config:

RewriteEngine On
RewriteRule ^/file/?(.*)$ http://mysite.com:7777/$1 [P]
ProxyPass /file http://mysite.com:7777
ProxyPassReverse /file http://mysite.com:7777


If anyone know about apache config please help me.
Thanks.
Title: Re: Reverse Proxy with HFS
Post by: Mars on April 10, 2011, 03:32:09 PM
You can force Apache to listen to on some other ports according to the network mask used in httpd.conf

# If your host doesn't have a registered DNS name, enter its IP address here.
#
ServerName 127.0.0.1:8888

#Listen 12.34.56.78:80
Listen 127.0.0.1:8888
Listen 192.168.1.10:8080
Listen 10.0.0.10:8080
.....
 ;)



Title: Re: Reverse Proxy with HFS
Post by: rejetto on April 11, 2011, 09:33:03 AM
i never used apache as a reverse proxy myself, so can't help with it.
just wanted to say: if you can't succeed with it, consider to put hfs and apache on a different ports.