RE: [PHP-WIN] Apache Virtual Hosts Local Machine Help

From: Date: Wed, 24 Jul 2002 01:04:42 +0000
Subject: RE: [PHP-WIN] Apache Virtual Hosts Local Machine Help
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-14911@lists.php.net to get a copy of this message
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:sean@heliocreative.com] > Sent: Wednesday, 24 July 2002 10:51 AM > To: php-windows@lists.php.net > 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 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. > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > >

« previous php.windows (#14911) next »