403 Forbidden
Posted by: elmonty (12.26.189.---)
Date: April 24, 2015 08:25PM

I installed a fresh copy of WampServer 2.5 32 bit on a Windows 7 computer. I can get the included apps to run (wbgrind, etc.) but if I create my own alias, I can't get to it. I get this message:

Forbidden
You don't have permission to access /testdrive2/ on this server.
Apache/2.4.9 (Win32) PHP/5.5.12 Server at localhost Port 80


I looked at the alias file for webgrind and modified my own alias accordingly to this:

Alias /project "c:/Users/xxx/Projects/Project Root/source/"

<Directory "c:/Users/xxx/Projects/Project Root/source/">
Options Indexes FollowSymLinks
AllowOverride all
<IfDefine APACHE24>
Require local
</IfDefine>
<IfDefine !APACHE24>
Order Deny,Allow
Deny from all
Allow from localhost ::1 127.0.0.1
</IfDefine>
</Directory>

That doesn't work, either. I get the same forbidden error.

Please help! Why doesn't this work out of the box?

Options: ReplyQuote
Re: 403 Forbidden
Posted by: RiggsFolly (---.as43234.net)
Date: April 25, 2015 04:47PM

You would be better to create Virtual Hosts than Alias's, one for each of your projects.

See here for detailled tutorial [forum.wampserver.com]

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: 403 Forbidden
Posted by: elmonty (12.26.189.---)
Date: April 27, 2015 04:40PM

The easiest solution was to uninstall WampServer 2.5 and install WampServer 2.3

Options: ReplyQuote
Re: 403 Forbidden
Posted by: RiggsFolly (---.as43234.net)
Date: April 27, 2015 05:04PM

You will get the same problems with any Apache installation, WAMPServer or anything else, that does not use Virtual Hosts when and if you come to move sites to a live server unless you get a handle on Virtual Hosts.

When and if you get such issues, please remember that you were pointed in the right direction and made the decision to ignore it.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote


Sorry, only registered users may post in this forum.