[thelist] Virtual Hosts on Apache
travis forden
travis at treevis.com
Sat Aug 18 16:40:32 CDT 2001
Please also reply to my address as I'm on digest.
My apache/php/perl/mysql combo [apache 1.3.14, php 4.0.5, mysql 3.23.32, perl 5.005_03] on win98 is for development only. It's
all installed in "D:/apache/" (installed with PHPTraid). The webs are at "D:/www/".
I want to set up virtual hosts whereby each web is accessed if i type in http://domain1/ (which points to D:/www/domain1), http://domain2/ (points to D:/www/domain2), etc.
I set up the following.
NameVirtualHost 127.0.0.1
<VirtualHost 127.0.0.1>
ServerAdmin webmaster at domain1
DocumentRoot "D:/www/domain1/"
ServerName domain1
ErrorLog logs/domain1-error_log
CustomLog logs/domain1-access_log common
</VirtualHost>
<VirtualHost 127.0.0.1>
ServerAdmin webmaster at domain2
DocumentRoot "D:/www/domain2/"
ServerName domain2
ErrorLog logs/domain2-error_log
CustomLog logs/domain2-access_log common
</VirtualHost>
However, when I point to http://domain1, i get 404 error. same with http://domain2.
How do I, in effect, create internal webs that point to each web?
travis
More information about the thelist
mailing list