Apache Error
Posted by: elnk (---.w82-127.abo.wanadoo.fr)
Date: May 21, 2016 11:15AM

Hi,

My configuration :

Wampserver 3.0.0 32bits
Apache 2.4.17
php 5.6.15
mysql 5.7.9

My problem :
WampServer start properly, but when I try to access a project in the log i have:

------------------------------------------------------------------

[Sat May 21 10:55:39.393866 2016] [authz_core:error] [pid 6984:tid 1140] [client 127.0.0.1:50070] AH01630: client denied by server configuration: C:/wamp/www/project/api/app/

[Sat May 21 10:55:39.395878 2016] [authz_core:error] [pid 6984:tid 1140] [client 127.0.0.1:50070] AH01630: client denied by server configuration: C:/wamp/www/project/api/src/
------------------------------------------------------------------

Yet I check my configuration files and all seems OK.

There are my configs files :

httpd.conf :


<Directory "C:/wamp/www/">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# [httpd.apache.org]
# for more information.
#
Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
AllowOverride all

#
# Controls who can get stuff from this server.
#

#onlineoffline tag - don't remove
#Require local
Require all granted
</Directory>


httpd-vhosts.conf:

<VirtualHost *:80>
ServerAdmin admin@test.fr
ServerName localhost
DocumentRoot "C:/wamp/www"
<Directory "C:/wamp/www">
Options +Indexes +FollowSymlinks
AllowOverride All
</Directory>
</VirtualHost>

<VirtualHost *:80>
ServerAdmin admin@test.fr
ServerName localhost.project.com
#ServerAlias localhost.project.com
DocumentRoot "C:/wamp/www/project/website/web/"
<Directory "C:/wamp/www/project/website/web/">
Options +Indexes +FollowSymlinks
AllowOverride All
</Directory>
</VirtualHost>

<VirtualHost *:80>
ServerAdmin admin@test.fr
DocumentRoot "C:/wamp/www/project/api"
ServerName api.project.com
#ServerAlias api.project.com
<Directory "C:/wamp/www/project/api">
Options +Indexes +FollowSymlinks
AllowOverride All
</Directory>
</VirtualHost>

<VirtualHost *:80>
ServerAdmin admin@test.fr
DocumentRoot "C:/wamp/www/Demo_websocket/web"
ServerName demo.websocket
#ServerAlias demo.websocket
<Directory "C:/wamp/www/Demo_websocket/web">
Options +Indexes +FollowSymlinks
AllowOverride All
</Directory>
</VirtualHost>

I already tried to set Require all granted in VirtualHost but no success :s

If someone has already faced this problem and found a solution , I'm interested. Thank you

Options: ReplyQuote
Re: Apache Error
Posted by: RiggsFolly (Moderator)
Date: May 21, 2016 02:40PM

Try this in your httpd-vhosts.conf

<VirtualHost *:80>
    ServerAdmin admin@test.fr
    ServerName localhost
    DocumentRoot "C:/wamp/www"
    <Directory "C:/wamp/www">
        Options Indexes FollowSymlinks                    #<- changed
        AllowOverride All
        Require local                                     #<- added
    </Directory>
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin admin@test.fr
    ServerName localhost.project.com
    #ServerAlias localhost.project.com
    DocumentRoot "C:/wamp/www/project/website/web/"
    <Directory "C:/wamp/www/project/website/web/">
        Options Indexes FollowSymlinks                    #<- changed
        AllowOverride All
        Require all granted                               #<- added
    </Directory>
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin admin@test.fr
    DocumentRoot "C:/wamp/www/project/api"
    ServerName api.project.com
    #ServerAlias api.project.com
    <Directory "C:/wamp/www/project/api">
        Options Indexes FollowSymlinks                    #<- changed
        AllowOverride All
        Require all granted                               #<- added
    </Directory>
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin admin@test.fr
    DocumentRoot "C:/wamp/www/Demo_websocket/web"
    ServerName demo.websocket
    #ServerAlias demo.websocket
    <Directory "C:/wamp/www/Demo_websocket/web">
        AllowOverride All
        Options Indexes FollowSymlinks                    #<- changed
        Require all granted                               #<- added
    </Directory>
</VirtualHost>


Unless you are actually trying to server yout site to the internet you can use
    Require ip 192.168.1
To just allow access to your routers subnet

---------------------------------------------------------------------------------------------
(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.