Link to home
Start Free TrialLog in
Avatar of micro_learner
micro_learner

asked on

Add a virtual host to WAMP I get a 403

I am trying to add a Virtual host to my local development envoirment so that I can have changes to the code tested from my workspace.

I followed the instrutions in here
http://jagztalk.com/multiple-virtual-hosts-on-wampserver.html

Essentially I did the following ....

1.I added the following to the http.conf
<VirtualHost 127.0.0.10>
    ServerAdmin your@email.com
    DocumentRoot C:/hourville/myfiles/
    ServerName yourdomain.local
    ErrorLog C:/wamp/bin/apache/Apache2.2.11/logs/error.log
    TransferLog C:/wamp/bin/apache/Apache2.2.11/logs/access.log
</VirtualHost>
2.
Then added the follwing in the hosts files at  
C:\WINDOWS\system32\drivers\etc

127.0.0.10      yourdomain.local

3.Tried to access it by
http://yourdomain.local/

I get a 403 ...
Avatar of Member_2_4694817
Member_2_4694817

Why 127.0.0.10? Don't you want 127.0.0.1?
Or try *
Do you have directory index file and settings configured correctly?

i.e
DirectoryIndex index.htm
and place index.htm in C:\hourville\myfiles
Avatar of Roonaan
Have you also added a
does it work if you use the ip address
403 means forbidden. So apache knows where to find the files, it only will not host the files because you have probably not the right allow from/deny from settings on the virtual host directory. So you probably have to add

<Directory "C:/hourville/myfiles/">
  Order allow,deny
  Allow from all
</Directory>
ASKER CERTIFIED SOLUTION
Avatar of yfastud
yfastud
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial