最近从Win XP(x86)迁移到Win 7(x64),我还必须重新安装Apache.我已经安装了64位版本的Apache(2.4.3)和PHP(2.4).
我把它安装到c:\ Apache24.
我已经启动并运行,但现在我需要将其锁定到我的本地PC.
如果我有:
<Directory "c:/Apache24/htdocs">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
# New directive needed in Apache 2.4.3 apparently:
Require all granted
</Directory>
Run Code Online (Sandbox Code Playgroud)
这工作正常,但如果我将其更改为:
<Directory "c:/Apache24/htdocs">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from 127.0.0.1
# New directive needed in Apache 2.4.3 apparently:
Require all granted
</Directory>
Run Code Online (Sandbox Code Playgroud)
(或'允许来自Localhost'或'允许来自192.xyz')
我收到拒绝访问错误.我怎么能绕过这个?
一切都是使用我的登录安装的,该登录具有完全本地管理员权限.
Fra*_*ois 22
更换
Order allow,deny
Allow from all
Require all granted
Run Code Online (Sandbox Code Playgroud)
只是
Require local
Run Code Online (Sandbox Code Playgroud)
更多:http://httpd.apache.org/docs/2.4/en/mod/mod_authz_host.html
| 归档时间: |
|
| 查看次数: |
17242 次 |
| 最近记录: |