【发布时间】:2017-09-21 18:47:40
【问题描述】:
因此,我在 Windows 上安装了 WAMP 以运行 Apache 和 PHP,并且我需要创建虚拟主机来访问网络共享 \\10.0.0.177\FMS Studios\Websites。当我转到域时,我收到 403 错误。这是我的 httpd-vhosts.conf 文件中的内容:
<VirtualHost *:80>
ServerName tree.fmsds.xyz
DocumentRoot "\\10.0.0.177\FMS Studios\Websites"
<Directory "\\10.0.0.177\FMS Studios\Websites">
AllowOverride All
Require all granted
Order deny,allow
</Directory>
</VirtualHost>
它甚至没有在 WAMP 的服务器管理器中注册为虚拟主机..
【问题讨论】:
-
删除
Order deny,allow那是 Apache 2.2 语法,不能很好地与Require all granted这是 Apache 2.4 语法混合 -
还是 403 错误。
标签: apache wamp virtualhost web-hosting network-share