rejetto forum
May 25, 2012, 11:55:50 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Reverse Proxy with HFS  (Read 1030 times)
0 Members and 1 Guest are viewing this topic.
DArKer
Occasional poster
*
Offline Offline

Thailand Thailand

Posts: 1


View Profile
« on: April 10, 2011, 10:16:09 AM »

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.
Logged
Mars
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1481



View Profile WWW
« Reply #1 on: April 10, 2011, 10:32:09 AM »

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
.....
 Wink



« Last Edit: April 10, 2011, 01:26:06 PM by Mars » Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11831


View Profile
« Reply #2 on: April 11, 2011, 04: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.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page May 18, 2012, 02:10:11 PM