[英]403 Forbidden vhost Ubuntu
Trying to setup my webserver and allow .htaccess in all www directories. 尝试设置我的Web服务器并在所有www目录中允许.htaccess。 When accessing sub.domain.com on my laptop (with host files adjusted), returns a 403 Forbidden.
在笔记本电脑上访问sub.domain.com(调整了主机文件)时,返回403禁止访问。 "You don't have permission to access / on this server."
“您无权访问此服务器上的/。”
It feels like the .htaccess file is not allowed, and therefore throws the 403. But as per my understanding the settings are correct isn't? 感觉像.htaccess文件不允许,因此抛出403。但是据我了解,设置正确吗? Am I overlooking something?
我在俯视什么吗?
apache2.conf apache2.conf
<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>
<Directory /var/www/>
AllowOverride All
</Directory>
domain.com.conf domain.com.conf
<VirtualHost *:80>
ServerName domain.com
ServerAlias sub.domain.com
ServerAdmin webmaster@domain.com
DocumentRoot /var/www/domain.com/public_html/support/current
<Directory "/var/www/domain.com/public_html/support/current">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
<VirtualHost *:443>
ServerName domain.com
ServerAlias .domain.com
ServerAdmin webmaster@domain.com
DocumentRoot /var/www/domain.com/public_html/support/current
<Directory "/var/www/domain.com/public_html/support/current">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Either /var/www/domain.com/public_html/support/current
doesn't exist, or its rights are not correct for user Apache runs on. /var/www/domain.com/public_html/support/current
不存在,或者其权限对于运行Apache的用户不正确。 Check the User
and Group
settings in the main Apache config to find out what they are. 检查主要Apache配置中的“
User
和“ Group
设置,以了解它们是什么。
You might also want to check the error log to get additional clues. 您可能还需要检查错误日志以获取其他线索。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.