Apache - vHost - 禁止访问
Apache - vHost - Forbidden
我正在尝试创建一个将“*:9090”指向特定目录的虚拟主机。我来解释一下。
下面的打印显示它正在按照我想要的路径工作。
因此,我正在尝试使“*:9090”指向此路径 (/wamp/www/root/dev)。低于我的尝试。
<VirtualHost *:9090>
DocumentRoot "c:/wamp/www/root/dev"
<Directory c:/wamp/www/root/dev>
Options all
Allow from all
AllowOverride All
Require all granted
</Directory>
现在,下面是我的打印结果。
我做错了什么?
在我使用这个之前我遇到了同样的问题:
<Virtualhost *:80 >
ServerName site.domain.com
DocumentRoot /path/to/site
<Directory /path/to/site>
AllowOverride All
Require all granted
</Directory>
ServerAdmin user@domain.com
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</Virtualhost>
我正在尝试创建一个将“*:9090”指向特定目录的虚拟主机。我来解释一下。
下面的打印显示它正在按照我想要的路径工作。
因此,我正在尝试使“*:9090”指向此路径 (/wamp/www/root/dev)。低于我的尝试。
<VirtualHost *:9090>
DocumentRoot "c:/wamp/www/root/dev"
<Directory c:/wamp/www/root/dev>
Options all
Allow from all
AllowOverride All
Require all granted
</Directory>
现在,下面是我的打印结果。
我做错了什么?
在我使用这个之前我遇到了同样的问题:
<Virtualhost *:80 >
ServerName site.domain.com
DocumentRoot /path/to/site
<Directory /path/to/site>
AllowOverride All
Require all granted
</Directory>
ServerAdmin user@domain.com
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</Virtualhost>