EFW Support

Support => General Support => Topic started by: splurben on Friday 25 May 2007, 07:48:22 pm



Title: [SOLVED] Endian changes hostname.domain to ip-address on browser address line...
Post by: splurben on Friday 25 May 2007, 07:48:22 pm
I realise I should remember this, probably a tweak in httpd.conf, but how do I prevent Apache from transferring to the ip-address of the firewall instead of using the hostname?

In effect, I type
Code:
https://efw-krh.localdomain:10443/
in my browser.

And I end up at
Code:
https://10.0.0.1:10443/
and SSL complains that I'm not at the set hostname of efw-krh.localdomain.

I realise this doesn't REALLY matter, but I'd like it to stay nice and clean.

Cheers,

Kirk Holz
Western Australia


Title: Re: Endian changes hostname.domain to ip-address on browser address line...
Post by: Steve on Saturday 26 May 2007, 09:48:17 pm
in /home/httpd/html/index.cgi

Change:
print "Location: https://$ENV{'SERVER_ADDR}:10443/cgi-bin/main.cgi\n\n";

to:
print "Location: https://$ENV{'SERVER_NAME'}:10443/cgi-bin/main.cgi\n\n";




Title: Re: [SOLVED] Endian changes hostname.domain to ip-address on browser address lin
Post by: splurben on Sunday 27 May 2007, 08:36:20 am
Thank you. Ace, dude!  ;D