virtual host on Vista
Posted by: warmsunshine (---.Red-83-50-232.dynamicIP.rima-tde.net)
Date: July 31, 2008 11:59AM

I have had Wampserver working with XP with no problems. However, I have had to upgrade (!) to Vista, and can't get virtual hosts to work. I know that I have missed something stupid - but what?

With the standard installation, localhost gives me the Wampserver localhost page, no problem.

I add the 127.0.0.1 workdomain and 127.0.0.1 workdomain2 to c:/windows/system32/drivers/etc/hosts (not sure if 127.0.0.1 localhost should stay in or not)

Now workdomain and workdomain2 both point to wampserver localhost page - what I would expect

C:/wamp/bin/apache/apache2.2.8\conf\httpd.conf
remove the # from the line
#Include conf/extra/httpd-vhosts.conf

Now all I have in httpd-vhosts.conf is
<VirtualHost *:80>
DocumentRoot "C:/develop4/workdomain"
ServerName workdomain
</VirtualHost>

And I get 403 forbidden on all 3 domains. I would expect workdomain to work...

So what have I missed?

please!

Pete

Options: ReplyQuote
Re: virtual host on Vista
Posted by: yfastud (Moderator)
Date: July 31, 2008 01:09PM


Options: ReplyQuote
Re: virtual host on Vista
Posted by: warmsunshine (---.Red-83-50-232.dynamicIP.rima-tde.net)
Date: July 31, 2008 02:07PM

I have tried that, simply copying everything from your pages.

But I still don't see anything - I get "failed to connect - the connection was refused when attempting to contact localhost"

The only way to stop this message, and to get localhost page visible, is to rem out (#) the include .. vhosts.conf line in httpd.conf

I am on the latest version of wamp, Apache 2.2.8, and MS Vista

Options: ReplyQuote
Re: virtual host on Vista
Posted by: warmsunshine (---.Red-83-50-232.dynamicIP.rima-tde.net)
Date: July 31, 2008 02:10PM

As I said, I have tried that...

Options: ReplyQuote
Re: virtual host on Vista
Posted by: warmsunshine (---.Red-83-50-232.dynamicIP.rima-tde.net)
Date: July 31, 2008 06:51PM

I have now moved the folder containing the code, from
C:/develop4/workdomain
to
C:/wamp/www/workdomain
and it works.

So it looks like a Vista permission thing...

But I don't want to move it there, I want it to stay in C:/develop4

Can anyone advise?

Options: ReplyQuote
Re: virtual host on Vista
Posted by: yfastud (Moderator)
Date: July 31, 2008 06:59PM

Quote

So it looks like a Vista permission thing...
No, it's not, but your folder is outside document root, so you need to add permission to that folder in your vh

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: virtual host on Vista
Posted by: warmsunshine (---.Red-83-50-232.dynamicIP.rima-tde.net)
Date: July 31, 2008 07:41PM

OK, I am new to Vista, just spent the last 3 days trying to get php etc back...

I tried adding
<Directory C:/develop4>
Order Deny, Allow
Allow from all
</Directory>

but that just gives me "failed to connect" on both localhost and workdomain.

Is this what you meant?

Options: ReplyQuote


Sorry, only registered users may post in this forum.