Welcome, Guest. Please login or register.
Did you miss your activation email?
Sunday 01 December 2024, 02:06:45 am

Login with username, password and session length

Visit the Official Endian Bug tracker  HERE
14261 Posts in 4377 Topics by 6517 Members
Latest Member: Sandro
Search:     Advanced search
+  EFW Support
|-+  Support
| |-+  General Support
| | |-+  [SOLVED] Endian changes hostname.domain to ip-address on browser address line...
0 Members and 3 Guests are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: [SOLVED] Endian changes hostname.domain to ip-address on browser address line...  (Read 35673 times)
splurben
Jr. Member
*
Offline Offline

Gender: Male
Posts: 2



WWW
« 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
Logged
Steve
Sr. Member
****
Offline Offline

Posts: 108



WWW
« Reply #1 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";


Logged

                          
splurben
Jr. Member
*
Offline Offline

Gender: Male
Posts: 2



WWW
« Reply #2 on: Sunday 27 May 2007, 08:36:20 am »

Thank you. Ace, dude!  Grin
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Page created in 0.07 seconds with 19 queries.
Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media Design by 7dana.com