On Tue, Feb 18, 2003 at 02:33:35PM +1100, Matt Hyne wrote:
>
> Folks, I have an apache problem that is probably quite simple to fix but
> I cannot find the solution.
>
> I have set up several virtual hosts on the box and these work fine,
> however I cannot get the correct virtualhost page if I drop the
> domainname from the URL.
>
> Eg (these are examples, so don't try accessing them):
>
> I have the following virtual domains:
>
> http://domain1.hyne.com
> http://domain2.hyne.com
> http://domain3.hyne.com
>
> Now, If I use the FQDN, I get the correct pages. However if I just use
> http://domain2 or http://domain3 then I will always get the webpage for
> domain1.
>
> I've played around with the options and searched google to no avail.
>
> Anyone got an ideas ?
NameVirtualHost *
<VirtualHost *>
ServerName domain1.hyne.com
ServerAlias domain1
DocumentRoot "/home/web/www.synorg.net"
CustomLog logs/www.synorg.net-access_log combined
ErrorLog logs/www.synorg.net-error_log
ServerAdmin [EMAIL PROTECTED]
<Directory "/home/web/www.synorg.net">
Options Indexes FollowSymLinks ExecCGI
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
>
> Matt
>
> --
> SLUG - Sydney Linux User's Group - http://slug.org.au/
> More Info: http://lists.slug.org.au/listinfo/slug
--
Colin Humphreys | <[EMAIL PROTECTED]> | http://www.encypher.net/
PGP key: 0xB6037E5E (fprint: F0EA C979 C9E8 A5C9 EBA7 7C63 6F66 227B)
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug