随笔 - 349  文章 - 2  评论 - 2  阅读 - 17万

apache关联php后出现403解决

本机上运行:127.0.0.1和localhost都没问题,远程登录就不可以了。
按照网上有些人的说法,把:

<Directory />

Options FollowSymLinks

AllowOverride None

Order deny,allow

Deny from all

Satisfy all

</Directory>

改成

<Directory />

Options Indexes FollowSymLinks

AllowOverride None

Order deny,allow

Allow from all

Satisfy all

</Directory>

还是不行,后来我把 Directory 带配置路径的这个地方改了,标红的为添加的,标紫色的是屏蔽的:

<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.2/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:

# Options FileInfo AuthConfig Limit

#

#AllowOverride all

AllowOverride none

#

# Controls who can get stuff from this server.

#

# onlineoffline tag – don’t remove

Order Allow,Deny

Allow from all

# Allow from 127.0.0.1

</Directory>

posted on   浩瀚孤鸿  阅读(193)  评论(0编辑  收藏  举报
编辑推荐:
· 理解Rust引用及其生命周期标识(下)
· 从二进制到误差:逐行拆解C语言浮点运算中的4008175468544之谜
· .NET制作智能桌面机器人:结合BotSharp智能体框架开发语音交互
· 软件产品开发中常见的10个问题及处理方法
· .NET 原生驾驭 AI 新基建实战系列:向量数据库的应用与畅想
阅读排行:
· C# 13 中的新增功能实操
· Ollama本地部署大模型总结
· 【杭电多校比赛记录】2025“钉耙编程”中国大学生算法设计春季联赛(4)
· 2025成都.NET开发者Connect圆满结束
· langchain0.3教程:从0到1打造一个智能聊天机器人
< 2012年9月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 1 2 3 4 5 6

点击右上角即可分享
微信分享提示