File access control in apache httpd.conf
高洛峰
高洛峰 2017-05-16 16:58:37
0
1
743

First list my apache configuration:

 Order Deny,Allow
 Deny from all
 Allow from 127.0.0.1
 Allow from localhost

There is another one like this:

 Order Allow,Deny
 Allow from localhost
 Allow from 127.0.0.1

It should mean that only 127.0.0.1 and localhost are allowed to access, but 403 is reported in wamp.

May I ask why this is? (I just want 127 and local to be accessible)

In the first solution, if Deny from all is removed, it can be accessed. But I don't understand why Deny from all doesn't work. Shouldn't you watch Allow in the end?

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
Peter_Zhu

Top-down matching!

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