RE: Vhost issues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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:carnold@xxxxxxxxxxxxxxxxxxx] 
Envoyé : mardi 18 décembre 2007 04:42
À : users
Objet :  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 administrator@xxxxxxxxxxxxxxxxx
    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 administrator@xxxxxxxxxxxx
    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: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux