[英]Apache virtualhost 403
I'm stuck on this 403 problem. 我陷入了这个403问题。 I set up virtual host for apache on ubuntu, and when I access the site, it returns 403.
我在ubuntu上为Apache设置了虚拟主机,当我访问该站点时,它返回403。
/etc/apache2/site-available/os.solesschong.com /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
file 文件
root/mysoft/sns/index.php
DNS 域名解析
oa.solesschong.com A-record: [IP of my server]
browser return 浏览器返回
Forbidden
You don't have permission to access / on this server.
Apache/2.2.22 (Ubuntu) Server at oa.solesschong.com Port 80
Apache进程是否具有读取/root/mysoft/sns/index.php的权限?
Check your version of apache. 检查您的apache版本。 If it is 2.4 then you need change alow configuration from
如果是2.4,则需要从以下位置更改配置
Allow from all
to 至
Require all granted
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.