4

Difference between ServerName and ServerAlias

view full story
linux-howto

http://serverfault.com – I'm not quite clear on the difference between ServerName and ServerAlias. It looks like both of them work as host name settings, except that ServerAlias only works within the <VirtualHost> tag. That is, I can do: ServerName www.domain1.com ServerName www.domain2.com or: <VirtualHost *:80> ServerName www.domain1.com ServerName www.domain2.com </VirtualHost> and both domains work on the same box. Can I use either ServerName or ServerAlias in this case? (HowTos)