[users@httpd] virtual host in apache2

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

 



my machine is debian sarge 3.1 kernel 2.4.27-2-386

1) I edited /etc/apache2/sites-available/default as below:-

NameVirtualHost *:80
<VirtualHost _default_ *:80>
ServerName roadtoy.com
DocumentRoot /var/www/roadtoy
</VirtualHost>

<VirtualHost _default_ *:80>
ServerName cartous.com
DocumentRoot /var/www/cartous
</VirtualHost>

2) When I go to roadtoy.com & cartous.com, they all go to
/var/www/roadtoy/index.html

3) Who to display /var/www/cartous/index.html, when I go to cartous.com

4) I saw some email reply from your site, it shows
<VirtualHost _default_*:80>
   why we need to put "_" at the both ends of default?

Thanx,

---------------------------------------------------------------------
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