rejetto forum

Reverse Proxy with HFS

DArKer · 3 · 10460

0 Members and 1 Guest are viewing this topic.

Offline DArKer

  • Occasional poster
  • *
    • Posts: 1
    • View Profile
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.


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2068
    • View Profile
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
.....
 ;)



« Last Edit: April 10, 2011, 06:26:06 PM by Mars »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
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.