【发布时间】:2015-06-05 08:25:31
【问题描述】:
我没有找到这个问题的答案,所以我自己问这个问题。
为了让我的 VHost 正常工作,我关注了 this answer。我的(工作)“httpd-vhosts.conf”文件看起来像这样
<VirtualHost *:80>
ServerAdmin jesuscc1993@gmail.com
DocumentRoot "Z:/Projects/Web/MetalTxus Site"
ServerName metaltxus.test
ServerAlias www.metaltxus.test
<Directory "Z:/Projects/Web/MetalTxus Site">
#Options FollowSymLinks
Options Indexes FollowSymLinks
AllowOverride All
Order deny,allow
Allow from all
</Directory>
</VirtualHost>
据我所知,我应该将“Indexes”更改为“-Indexes”,以使 Web 加载“index.html”而不是 Web 目录。
但是,当我这样做时,我的 WAMPServer 无法启动。如果我删除了“FollowSymLinks”选项,但我得到的只是一个“403 - 禁止”页面(“您无权访问此服务器上的“/”)。
由于寻找解决方案一事无成,我将其用作我的最后一个资源。
我在 Windows 8.1 中使用最新的 WampServer 版本。我想测试一个 AngularJS 应用程序。
如果您需要更多信息,请继续询问。
【问题讨论】:
标签: angularjs apache server wamp host