Forum Moderators: phranque

Message Too Old, No Replies

Virtual hosting configuration

         

Jagabee

8:44 am on Jan 31, 2012 (gmt 0)

10+ Year Member



Hello,
I am having difficulty with setting up virtual hosting on Apache (WAMP install on XP).
I have both a Bugzilla and Wordpress install for testing and am trying to establish the following:-
Access to the Bugzilla install from \\localhost (Document route is c:\Bugzilla)
Access to the Wordpress install from \\localhost\wordpress (Document route is c:\wamp\WWW)
I have tried various instructions online and have the following setup to enable this:-
Two entries in hosts file
Localhost 127.0.0.1
Client1.localhost 127.0.0.1
And the following configuration for the httpd.conf file (which I have concatenated for readability but please do let me know if any further configuration information is needed to help resolve the problem)
--------------------------------------
Listen *:80

ServerName localhost:80

DocumentRoot "c:/Bugzilla"

<Directory "c:/Bugzilla">

<VirtualHost *:80>
DocumentRoot "c:/wamp/WWW"
ServerName client1.localhost


<Directory c:/wamp/WWW>
AllowOverride All
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>

</VirtualHost>

The problem is that the Wordpress install is accessed when connecting to both \\localhost or \\localhost\wordpress when ideally \\localhost should be pointing to the Bugzuilla install.
I would be very grateful if someone can point me to where I am going wrong with this configuration. Many thanks!