Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change 
notification.

The following page has been changed by megaspaz:
http://wiki.apache.org/httpd/ScratchPad/CommonMisconfigurations

The comment on the change is:
escaped keyword

------------------------------------------------------------------------------
  </VirtualHost>
  }}}
  
- Why is the first virtual host wrong? It's wrong on a couple of levels. The 
most obvious is that some.domain.com used in the first <!VirtualHost> block 
doesn't match *:80 used in !NameVirtualHost. The other being that 
NameVirtualHost refers to an interface, not a domain. For instance using *:80, 
means catch all interfaces on port 80. !NameVirtualHost 1.1.1.1:80, would mean 
to catch the interface defined as 1.1.1.1 on port 80. While you can use a 
"!NameVirtualHost some.domain.com/<!VirtualHost some.domain.com>" combination, 
it doesn't really make sense and is not used... at least not used by anyone 
who's experienced with Apache administration.[[BR]][[BR]]
+ Why is the first virtual host wrong? It's wrong on a couple of levels. The 
most obvious is that some.domain.com used in the first <!VirtualHost> block 
doesn't match *:80 used in !NameVirtualHost. The other being that 
!NameVirtualHost refers to an interface, not a domain. For instance using *:80, 
means catch all interfaces on port 80. !NameVirtualHost 1.1.1.1:80, would mean 
to catch the interface defined as 1.1.1.1 on port 80. While you can use a 
"!NameVirtualHost some.domain.com/<!VirtualHost some.domain.com>" combination, 
it doesn't really make sense and is not used... at least not used by anyone 
who's experienced with Apache administration.[[BR]][[BR]]
  
  ==== 2. Not setting a ServerName in a virtual host. ====
  Example:

Reply via email to