httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bernard chan <nichim...@gmail.com>
Subject [users@httpd] virtual host in apache2
Date Wed, 31 Aug 2005 09:13:29 GMT
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message