Apache Virtual Hosts Local Machine Help
| From: | Sean M. Mayhew | Date: | Wed, 24 Jul 2002 00:50:59 +0000 |
| Subject: | Apache Virtual Hosts Local Machine Help | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-14910@lists.php.net to get a copy of this message | ||
Im trying to set up virtual hosts with apache for testing php on my local
machine. I've searched the web all over and found the same instructions
consistantly and have tried them numerous times but have been unsuccessful.
First of all I'm having trouble determining where this "hosts" file is
supposed to be located so I altered it and saved it in the first directory I
found it...
C:\WINNT\system32\drivers\etc
Then made a copy of it to...
C:\WINNT\system32
I changed the line from
127.0.0.1 localhost
-to-
127.0.0.1 localhost examplesean.com
I should mention that the hosts file I'm using does not contain the .sam
extnsion that I found in tutorials the "hosts" file in fact has no file
extension.
I changed the httpd.conf file to contain:
NameVirtualHost 127.0.0.1:80
<VirtualHost 127.0.0.1>
ServerName examplesean.com
ServerAdmin your_email@yourwebserver.com
DocumentRoot "/www/examplesean"
ErrorLog logs/error_log
CustomLog logs/access_log common
i created two directories in my apache htdocs directory one called www (as
is similar to modwest) then a folder called examplesean with an index.html
file.
When I put http://examplesean.com into the browser I get the
following
error
Not Found
The requested URL / was not found on this server.
----------------------------------------------------------------------------
----
Apache/1.3.19 Server at examplesean.com Port 80
Im running PHP4 with apache on a Windows 2000 professional OS. Any help
would be greatly appreciated.