rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: user on April 21, 2010, 10:35:45 AM

Title: apache as proxy
Post by: user on April 21, 2010, 10: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.
Title: Re: apache as proxy
Post by: rejetto on April 22, 2010, 02:49:18 PM
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?
Title: Re: apache as proxy
Post by: user on April 22, 2010, 05: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: [Select]
<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