VPS侦探论坛

 找回密码
 注册
查看: 3408|回复: 0

出现403 Forbidden错误,找不到问题出在哪

[复制链接]
发表于 2017-4-29 18:07:20 | 显示全部楼层 |阅读模式

已经自己找到问题了,原来我把default文件夹改名了,改回就正常
----------以下历史-------------------
1.3 的 lamp版本,安装wordpress,lnmp add vhost后一切正常,访问域名出现以下错误

Forbidden

You don't have permission to access / on this server.
Apache Server at www.***.cn Port 80


重启lnmp restart
Stoping LAMP...
stop apache... Syntax error on line 161 of /usr/local/apache/conf/httpd.conf:
DocumentRoot must be a directory
failed
Shutting down MySQL. SUCCESS!
Starting LAMP...
start apache... Syntax error on line 161 of /usr/local/apache/conf/httpd.conf:
DocumentRoot must be a directory
failed
Starting MySQL.. SUCCESS!

[ 本帖最后由 lfeven 于 2017-4-29 19:50 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-27 05:46 , Processed in 0.024346 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表