Jun 24, 2012
tom

Websites projects on different drive to WAMP install result in forbidden 403

Question

I have installed WAMP to C:/wamp/... and I would like to have my projects on my second drive, d. I have the following in my vhosts file:

<VirtualHost *:80>
  ServerAdmin postmaster@example.com
  DocumentRoot "D:/websites/example/public_html"
  ServerName example.local
  ServerAlias www.example.local
  ErrorLog "logs/example.local-error.log"
  CustomLog "logs/example.local-access.log" combined
</VirtualHost>

and added example.local to my hosts file. However the project produces a 403 Forbidden error. Projects inside the default wamp/www/ directory work. Is there something else I need to do?

Asked by xylar

Answer

        <Directory "d:/yourpath">
         Order allow,deny
         Allow from all
     </Directory>

add that within the VirtualHost tag.

Answered by user993553

Related posts:

  1. VPC running WinXP SP3 with WAMP: 403 error on network drive
  2. Apache: Options +Indexes still results in 403 Forbidden or Apache Test Page
  3. Changing the MySQL datadir location to a mapped drive under WAMP
  4. 403 forbidden from apache2
  5. Why am I getting this 403 Forbidden error?

Leave a comment