我被这个403问题困住了。我在ubuntu上为apache设置了虚拟主机,当我访问该站点时,它返回403。
/etc/apache2/site-available/os.solesschong.com
<VirtualHost *>
DocumentRoot /root/mysoft/sns
ServerName oa.solesschong.com
ErrorLog ${APACHE_LOG_DIR}/oa.solesschong.com-error.log
CustomLog ${APACHE_LOG_DIR}/oa.solesschong.com-access.log combined
<Directory /root/mysoft/sns>
Allow from all
</Directory>
</VirtualHost># a2enable oa.solesschong.com
文件
root/mysoft/sns/index.phpDNS
oa.solesschong.com A-record: [IP of my server]浏览器返回
Forbidden
You don't have permission to access / on this server.
Apache/2.2.22 (Ubuntu) Server at oa.solesschong.com Port 80发布于 2013-10-26 05:06:27
Apache进程是否有权读取/root/mysoft/sns/index.php?
发布于 2013-10-26 04:41:33
检查你的apache版本。如果是2.4,则需要从
Allow from all至
Require all grantedhttps://stackoverflow.com/questions/19602846
复制相似问题