Apache2.4.18 error 403
巴扎黑
巴扎黑 2017-05-16 16:59:44
0
3
665

1. Background:
I am a rookie and want to build a web management system in the company's LAN, but I encountered problems when setting up the environment. Baidu didn't come up with anything for a day. They were all expired copy-pasted answers.
2. Environment:
Installation environment:
1)Win7Pro(32bit)Chinese (non-virtual machine)
2)Wampserver3.0.4(Server Software:Apache/2.4.18 (Win32) PHP/ 5.6.19 - Port defined for Apache: 80)
3. Problem description:
1) After installing wampserver, it starts normally and can be accessed normally through localhos, local ip, and 127.0.0.1.
But when I access the service on other machines in the LAN, it prompts that access is denied and I have no permission. . Screenshot below:

Error log:

[authz_core:error] [pid 4544:tid 864] [client 192.168.221.122:49359] AH01630: client denied by server configuration: C:/wamp/www/favicon.ico
[authz_core:error] [pid 4544:tid 856] [client 192.168.221.122:49363] AH01630: client denied by server configuration: C:/wamp/www/

2) The above problem made me, a novice, confused. Baidu and Google couldn’t solve it. Most of the answers were to modify the access permissions of the http.conf directory. Then I also modified it to allow all access, restart the service and restart the computer, but The above access denied

still appears.
DocumentRoot "c:/wamp/www"
<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
    # http://httpd.apache.org/docs/2.4/mod/core.html#options
    # 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>

4. Summary:
It’s been a long day and it’s too tiring. Please give me some guidance. Thank you very much

巴扎黑
巴扎黑

reply all(3)
淡淡烟草味

This issue took me a long time to solve. . . . . apache 2.4.18** The result is: You also need to modify the Virtual Hosts file in conf/extra/httpd-vhosts.conf !!!!!

<VirtualHost *:80>

ServerName localhost
DocumentRoot d:/wamp/www
<Directory  "d:/wamp/www/">
    Options +Indexes +FollowSymLinks +MultiViews
    AllowOverride All
    #Require local
    Require all granted
</Directory>

</VirtualHost>

phpcn_u1582

Try turning off the firewall on your machine in Advanced System Management!

淡淡烟草味

The wampsever3 menu has changed. The put online/offline function needs to be turned on. Right-click the service image to find the menu option, turn on the put online/offline menu and then put on line can be accessed on other machines. However, this function is also modified by modifying httpd.conf The file
set the directory access permission Require local>Require all granted, but manual modification does not work. I don’t know what’s going on. Someone who knows can give me some advice.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template