the host name you want touse has to be a valid hostname .. so you can't just make on up and go beauty i'll use that one .. it has to be added to ur dns in order for virtual hosts to work
> -----Original Message----- > From: Sean M. Mayhew [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, 24 July 2002 10:51 AM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] Apache Virtual Hosts Local Machine Help > > > 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 [EMAIL PROTECTED] > 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. > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php