You can fix that by adding "ServerAlias www.teknerds.net" to the second VHost.

BTW, next time you post a configuration, please remove all the comments that 
make it unreadable unless they are relevant for your problem...

-ascs
 
-----Message d'origine-----
De : Chris Arnold [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 18 décembre 2007 04:42
À : users
Objet : [EMAIL PROTECTED] Vhost issues

Using apache 2.2.3 and at this time, we only have 2 vhosts. When trying to go 
to www.teknerds.net people get the other vhost (which is MUWP). Following id 
the vhost file:
#
NameVirtualHost *:80

<VirtualHost *:80>
    ServerAdmin [EMAIL PROTECTED]
    ServerName mytimewithgod.net
    #ServerAlias mytimewithgod.net *.mytimewithgod.net

    DocumentRoot /srv/www/htdocs/sites/MTwG
    ErrorLog /var/log/apache2/MTwG-error_log
    CustomLog /var/log/apache2/MTwG-access_log combined
    HostnameLookups Off
    UseCanonicalName Off
    ServerSignature On

    ScriptAlias /mailman/ "/usr/lib/mailman/cgi-bin/"

    <Directory "/usr/lib/mailman/cgi-bin/">
        AllowOverride None
        Options +ExecCGI -Includes
        Order allow,deny
        Allow from all
    </Directory>

    <IfModule mod_userdir.c>
        UserDir public_html
    </IfModule>

    <Directory "/srv/www/htdocs/sites/MTwG">    
        Order allow,deny
        Allow from all
    </Directory>

</VirtualHost>

<VirtualHost *:80>
    ServerAdmin [EMAIL PROTECTED]
    ServerName teknerds.net
    DocumentRoot /srv/www/htdocs/sites/teknerds

    ErrorLog /var/log/apache2/teknerds.net-error_log
    CustomLog /var/log/apache2/teknerds.net-access_log combined

    HostnameLookups Off
    UseCanonicalName Off
    ServerSignature On

    <Directory "/srv/www/htdocs/sites/teknerds">    
        Order allow,deny
        Allow from all
    
    </Directory>

</VirtualHost>

What do i have wrong? Thanks for any help.

Chris

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to