rejetto forum

Software => HTML & templates => HFS ~ HTTP File Server => RAWR-Designs => Topic started by: Unknown8063 on January 31, 2009, 10:07:12 PM

Title: IP Detection
Post by: Unknown8063 on January 31, 2009, 10:07:12 PM
TSG/Giant Eagle

I'm in the process of moving my HFS server onto a different machine and will be using my Apache server to reverse proxy user connections over to it.  This means that every user who connects to my server is seen by HFS as having a local LAN IP, and triggering RAWR template features geared toward an administrative user such as the Update panel.  In future releases can you add a variable at the top of the template to disable this just like you did for the IP display?

Thanks much, 8063
Title: Re: IP Detection
Post by: TSG on February 01, 2009, 10:11:59 AM
ok i'll add this when I get around to updating the templates.
Title: Re: IP Detection
Post by: rejetto on February 02, 2009, 01:35:21 PM
local LAN ip?
i think only localhost/127.0.0.1 should be. :-\
anyway, i think HFS should support the apache proxying, and may show you the real ip.
let me know.
Title: Re: IP Detection
Post by: TSG on February 02, 2009, 02:28:48 PM
Ye that is all I was going to do to fix it... just make it look for localhost. I had it set up to detect network addresses cause there was a time when HFS used to use network address when opened in browser.
Title: Re: IP Detection
Post by: Unknown8063 on February 02, 2009, 03:30:51 PM
local LAN ip?
i think only localhost/127.0.0.1 should be. :-\
anyway, i think HFS should support the apache proxying, and may show you the real ip.
let me know.

Is this an option?  A quick test from my office computer and %ip% expanded to 192.168.1.x.  I'd also be a bit wary of trusting 127.0.0.1 as routing HFS through stunnel should yield similar behavior to my setup - and stunnel would typically be installed on the same PC as HFS.
Title: Re: IP Detection
Post by: TSG on February 02, 2009, 03:42:34 PM
Maybe it would be best just to put an option, like I have done for IP.