Just for a thought, make the hosts file look something like this: 127.0.0.1 localhost websites agendatest note the lowercaseand also for your apache config make sure you turn on Name based virtual hosts and use lowercase hostnames.
read: http://httpd.apache.org/docs/2.0/vhosts/name-based.html for more info on setting up name based virtual hostsAlso, the order in which the hosts file gets used in windows applications depends on the function to do DNS resolution (there are at least 2 and they use a different order with regards to hosts file and DNS lookups)
Finally, you probably won't need the following section in your config Alias /AgendaTest/ "C:/Websites/AgendaTest/" Larry wrote:
Apache 2.0.47, PHP 4.3.4, MySQL 4 something. All installed on Win XPPro SP2, 2 gig mem.I am trying to setup a testing server for Dreamweaver 8. Most of my work is in subdirectories of C:\Websites, for example C:\Websites\AgendaTest. I would like to use Apache with PHP as a testing server. I am getting confused between Virtual Hosts and Aliases. I thought that adding the lines: 127.0.0.1 Localhost 127.0.0.1 Websites 127.0.0.1 AgendaTest to Hosts in \Windows\System32\Drivers\etc in combination with virtual hosts in C:\Program Files\Apache Group\Apache2\conf\httpd.conf woulddo it, but I guess not.In httpd.conf I set up (at various places) Servername localhost:80 DocumentRoot "C:/Websites" <Directory "C:/Websites"> Alias /websites "C:/Websites/" <Directory "C:/Websites"> Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all </Directory> Alias /AgendaTest/ "C:/Websites/AgendaTest/" <Directory "C:/Websites/AgendaTest"> Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all </Directory> <VirtualHost *> DocumentRoot "C:/Websites" ServerName localhost </VirtualHost> <VirtualHost *> DocumentRoot "C:/Websites/AgendaTest" ServerName AgendaTest </VirtualHost> What am I screwing up here? Thanks, -- Larry rapp@xxxxxxx --------------------------------------------------------------------- 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
-- Gerwin van de Steeg Engineer Vadacom Ltd W: www.vadacom.co.nz E: gerwin.van.de.steeg@xxxxxxxxxxxxx --------------------------------------------------------------------- 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx