Multiple Virtual Hosts - one on different hard drive
Posted by: Jaybles (---.alphamedia.net)
Date: June 14, 2012 07:43PM

My httpd-vhosts.conf file looks something like this. I am trying to create 2 virtual hosts. One of the projects exists within the default document root, while the other is off on another hard drive altogether.

<VirtualHost *:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "C:/wamp/www/project1/public_html"
ServerName p1.localhost
ServerAlias www.p1.localhost
ErrorLog "logs/p1.localhost.log"
</VirtualHost>

<VirtualHost *:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "E:/Other Media/www"
ServerName pn.localhost
ServerAlias www.pn.localhost
ErrorLog "logs/pn.localhost.log"
CustomLog "logs/pn.localhost.log" common
<Directory "E:/Other Media/www">
Options Includes Indexes FollowSymLinks
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
I also added this chunk into my httpd.conf

<Directory "E:/Other Media/www">
Order allow,deny
Allow from all
</Directory>

As expected, the VH in the /wamp/www works fine, but the project on my E: drive will not show up!!

Any advice would be appreciated!

Options: ReplyQuote
Re: Multiple Virtual Hosts - one on different hard drive
Posted by: stevenmartin99 (Moderator)
Date: June 14, 2012 07:44PM

is it a phyiscally connected drive or a network drive?

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Multiple Virtual Hosts - one on different hard drive
Posted by: Jaybles (---.alphamedia.net)
Date: June 14, 2012 07:49PM

Thanks for the response. It is a physically connected drive.

Options: ReplyQuote
Re: Multiple Virtual Hosts - one on different hard drive
Posted by: stevenmartin99 (Moderator)
Date: June 14, 2012 07:53PM

remove that chunk you added in the httpd.conf

try removing the space in the folder..


if you wanna get teamviewer i can troubleshoot it for you cos it does look right..

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Multiple Virtual Hosts - one on different hard drive
Posted by: Jaybles (---.alphamedia.net)
Date: June 14, 2012 08:01PM

unfortunately, removing the space is not an option. What is happening now is when I go to pn.localhost, I see the wamp server home page (as if i just went to localhost). My Virtual Host does not show up under Virtual Hosts on the server config page.

I appreciate your offer to troubleshoot, but I cannot allow access onto this particular server.

Options: ReplyQuote
Re: Multiple Virtual Hosts - one on different hard drive
Posted by: stevenmartin99 (Moderator)
Date: June 14, 2012 08:29PM

it will also go to the first vhost if no other matches are made.

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Multiple Virtual Hosts - one on different hard drive
Posted by: Jaybles (---.alphamedia.net)
Date: June 14, 2012 09:02PM

I created a directory "E:/OtherMedia/www" (without the space) and the same issue is occurring.

Options: ReplyQuote


Sorry, only registered users may post in this forum.