403 forbidden
Posted by: wuffy77 (89.242.160.---)
Date: January 06, 2008 01:41PM

I'm getting a 403 message when I'm trying to configure a virtual host.

Can anyone give me a few pointers or highlight the mistake I've made below?

I've updated the windows hosts file & uncommented the include vhosts file in apache - I've also checked the vista permissions on the folder (it was working fine before anyway when I used localhost on install)

#
# Use name-based virtual hosting.
#
NameVirtualHost *:80

<VirtualHost *:80>
DocumentRoot C:/wamp/dev/
ServerName localhost
</VirtualHost>

<VirtualHost dev.test.com>
DocumentRoot "c:/wamp/dev"
ServerName dev.test.com

<Directory "c:/wamp/dev">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

</VirtualHost>

Options: ReplyQuote
Re: 403 forbidden
Posted by: yfastud (Moderator)
Date: January 06, 2008 03:43PM

Quote

#
# Use name-based virtual hosting.
#
NameVirtualHost *:80

<VirtualHost *:80>
DocumentRoot C:/wamp/dev/
ServerName localhost
</VirtualHost>

<VirtualHost dev.test.com>
DocumentRoot "c:/wamp/dev"
ServerName dev.test.com

<Directory "c:/wamp/dev">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

</VirtualHost>
Remember to take out those 2 dummy vh, and your codes should change as follows:

#
# Use name-based virtual hosting.
#
NameVirtualHost *:80

#
# Domain dev.test.com
#

<VirtualHost *:80>
DocumentRoot c:/wamp/www/dev
ServerName dev.test.com

<Directory "c:/wamp/www/dev">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

</VirtualHost>

#
# Localhost
#

<VirtualHost *:80>
DocumentRoot C:/wamp/www
ServerName localhost
</VirtualHost>

Have fun,

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

Options: ReplyQuote
Re: 403 forbidden
Posted by: wuffy77 (89.242.160.---)
Date: January 06, 2008 05:24PM

works a treat cheers!

Options: ReplyQuote
Re: 403 forbidden
Posted by: yfastud (Moderator)
Date: January 06, 2008 09:24PM


Options: ReplyQuote


Sorry, only registered users may post in this forum.