httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matus UHLAR - fantomas <>
Subject Re: [users@httpd] Using VirtualHosts, do I need to specify "main" ServerName?
Date Thu, 08 Oct 2009 11:26:56 GMT
> Edward Ruggeri wrote:
>> (Of course, my system hostname (in /etc/hostname) is not fully qualified.)

On 26.09.09 12:49, Stephen wrote:
> Your hostname, should have an entry in /etc/hosts
> hostname
> Then Apache is happy and you are fine.

no, It should be at lease localhost <fqdn> hostname

The former would cause resolving to "hostname" that should cause
unexpected behavior in some applications. Imho, the should always
resolve to "localhost"

...otoh, there is a 'hostname' utility that does the hostname resolution and
returns the resolved hostname which results to returning "localhost".

I've seen people using different IP from 127/8 range ( for this to
work "correctly". Unluckily there is no IP address nor domain designed to do
this kind of things so you just have to play with it and see what works and
doesn't cause troubles.

Matus UHLAR - fantomas, ;
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
The only substitute for good manners is fast reflexes. 

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message