Apache virtual servers

Derek Broughton news at pointerstop.ca
Wed Nov 21 13:22:30 UTC 2007

Damien Hull wrote:

> Well, what can I say. I guess it helps to have others check your work.
> I'll put the defaults back. I took them out so I could see what I was
> doing. Looks like I need to move on to SSL.
> David C. Uhrig wrote:
>> On Nov 20, 2007 11:14 AM, Damien Hull <dhull at digitaloverload.net> wrote:
>>>     <VirtualHost>
>>>     ServerName webamil.testing-linux.com
>>>     DocumentRoot /usr/share/squirrelmail
>>>     </VirtualHost>
>> You have a misspelling in your ServerName, it should be webmail not
>> webamil. I changed it in a browser and it loaded no problems! :)

The other issue is that you generally do NOT specify an IP address in the
<VirtualHost> tag.  It's just <VirtualHost *> - the identification of
_which_ virtual server to use is determined by comparing the host name of
the request to the ServerName value (so use ServerAlias if there are
multiple names that resolve to that server).

More information about the ubuntu-users mailing list