WampServer 3.0.0 AH01630: client denied by server configuration:
Posted by: juggernautsei (---.knology.net)
Date: March 19, 2016 10:12PM

Server is Win2008 R2 64bit
Wampserver Icon is green W with a red circle over the middle of the W.
When hovering over the icon it reports "Server Online - All services running".


Setting up a new dev server to work on PHP7 and get some training in and run across an impasse.
I can find the answer to this delima for lower version of wamp but not for the current version 3.0.0

I can access the server from localhost, 127.0.0.1 no problem. However when I go to another computer on the LAN. I get the dreaded.

Forbidden

You don't have permission to access /dev/lab on this server.

So just to be on the safe side I used the new interface to see how the new setup would create a vhost. The vhost works fine locally but not from another PC on the LAN. The apache_error.log shows

[authz_core:error] [pid 3408:tid 928] [client 192.168.1.38:54761] AH01630: client denied by server configuration: C:/wamp64/www/dev/lab

From everything I was reading it should have been a simple change of this

<VirtualHost *:80>
ServerName dev
DocumentRoot c:/wamp64/www/dev
<Directory "c:/wamp64/www/dev/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>

Which you can see I changed the Require local to Require all granted.
No JOY!

Still getting Forbidden access on the other LAN PC.



Edited 1 time(s). Last edit at 03/19/2016 10:16PM by juggernautsei.

Options: ReplyQuote
Re: WampServer 3.0.0 AH01630: client denied by server configuration:
Posted by: RiggsFolly (Moderator)
Date: March 20, 2016 02:18PM

Hi

Do you have this new domain registsred in you HOSTS file i.e.

127.0.0.1  localhost
127.0.0.1  dev

::1  localhost
::1  dev

I assume you do.

So now you have to tell the Other PC's in your network where the `dev` domain lives.

So either amend you DNS if you have one or on each PC you want to access the `dev` domain from, you must add a HOSTS file to those PC's as well.

Like this, assuming the WAMPServer is running on 192.168.1.10

192.168.1.10 dev

---------------------------------------------------------------------------------------------
(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: WampServer 3.0.0 AH01630: client denied by server configuration:
Posted by: juggernautsei (---.knology.net)
Date: March 20, 2016 08:39PM

Thanks for the reply the weirdest thing happened.

When I changed this from Require local to Require all granted. The subfolder worked.

<VirtualHost *:80>
ServerName localhost
DocumentRoot C:/wamp64/www
<Directory "C:/wamp64/www/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>

I had been trying to access the sub folder via the [192.168.1.36].
Once I changed that, the subfolder became available from the other PC on the network.

Thanks!

Options: ReplyQuote


Sorry, only registered users may post in this forum.