rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: HFS Behind Apache on September 22, 2009, 06:02:22 AM

Title: HFS Behind Apache
Post by: HFS Behind Apache on September 22, 2009, 06:02:22 AM
HFS Running on on Windows XP Storage Server on local net (let's say 192.168.0.2:8001).  Apache2 running on Ubuntu 9.04 Web Server on local net (192.168.0.3).  I want to mount the entire HFS server at http://192.168.0.3/hfs and I totally can't figure it out.  Help please!
Title: Re: HFS Behind Apache
Post by: Ben on September 22, 2009, 02:42:42 PM
Sorry, put my real name this time :)

Some more info...

I can get it so the HFS Home page shows up via Reverse Proxy.  However there are no images or formatting.  Also the links don't really work.  Am I going to have to go into the template to adjust the link hrefs and img srces?
Title: Re: HFS Behind Apache
Post by: Ben on September 22, 2009, 03:31:37 PM
Also, I tried Apache's RewriteRule (as opposed to ProxyPass) but the proxy requests were refused by the Windows HFS machine.
Title: Re: HFS Behind Apache
Post by: rejetto on September 24, 2009, 10:04:48 AM
welcome Ben!
i'm not into it, but did you already referred to official documents (http://httpd.apache.org/docs/2.0/mod/mod_proxy.html) ?
confront also with this guide http://www.apachetutor.org/admin/reverseproxies
under section "Configuring the Proxy"
Title: Re: HFS Behind Apache
Post by: Horacio on October 04, 2009, 06:39:26 AM
Hi Ben,
I don't know if you have allready solved your problem. I had neary the same and here's how I've got through:
Just create an empty folder under your 'Document_root', let's say HFS. Then put in it the .htaccess file with the statements in the attached file.
Notes:
* Only lines 1,8,9 are required. Other lines are to avoid redirecting these folders if found under Document_root.
* In my case, I'm not changing the Server's IP adress, so I this will work for you. I think that it depend on your rooter.
When I tried this way, it was ok in my LAN, but not from the outside.
* Another way to test is VirtualHost (see Apache Document about this). :o

Good luck
Horacio.