rejetto forum
May 25, 2012, 04:52:47 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: apache as proxy  (Read 439 times)
0 Members and 1 Guest are viewing this topic.
user
Guest


Email
« on: April 21, 2010, 05:35:45 AM »

I have hfs on my computer with address http://localhost:7000.
Now I want to proxy it with Apache server.
When I use redirection of URLs from http://localhost:7000 to http://localhost/hfs some problems occur:
 - page shown incorrectly - all styles disappered
 - when I move mouse over link in the HFS page the URL is not relative to current page address, but relative to server root address http://localhost:7000, i.e. links are /link_url/, but I need link_url/. If I redirect http://localhost:7000 to http://localhost all work fine, but it's not I need (I need redirect to subdirectory `hfs` on the main server).

My English is bad I know, but I hope you understand what I mean. Thanks.
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11831


View Profile
« Reply #1 on: April 22, 2010, 09:49:18 AM »

i'm not an apache expert, but other people on the forum are using apache as reverse proxy, successfully.
did you already tried searching the forum?
Logged
user
Guest


Email
« Reply #2 on: April 22, 2010, 12:45:20 PM »

Thanks for advice, rejetto. I found the best way to do this using frames - that is to create folder `hfs` in the server's document root and to place `index.html` there with the following content:
Code:
<html>
<head>
<title>HFS</title>
<meta content="text/html; charset=utf-8" http-equiv="content-type">
</head>
<body style="margin:0">
<iframe margin="0" name="hfs" src="http://localhost:7000" width="100%" height="100%" frameborder="0" marginheight="100" marginwidth="100">
</iframe>
</body>
</html>

where `localhost` must be server's name in the network (or ip address).
It's looks like hfs work under apache control (like a php application).

I found information here http://www.rejetto.com/forum/index.php/topic,3374.msg1016774.html#msg1016774

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 19, 2012, 07:28:16 AM
anything