【发布时间】:2016-01-21 05:31:39
【问题描述】:
我使用带有虚拟主机的 apache 作为我的服务器。我还使用 yeoman 来生成 Angular 应用程序模板。出于某种原因,当我启动我的网站时,我可以看到索引页面,但控制台给了我 403 禁止错误,所有这些错误都出现在 bootstrap、angular.js 等 Bower 组件上。我不确定我做错了什么。有人可以帮忙吗?谢谢!
我的 V-host 文件
<VirtualHost *:80>
ServerAdmin myname@gmail.com
DocumentRoot "/Users/John/testproject/app"
ServerName testproject.localhost
ErrorLog "/private/var/log/apache2/testproject-error_log"
CustomLog "/private/var/log/apache2/testproject-access_log" common
<Directory "/Users/John/testproject/app">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
我的项目结构。
testproject
app
bower_components <-symlink
bower_components
angular <----403 error
bootstrap <----403 error
...etc
Gruntfile.js
Bower.json
我在浏览器上的网址
testproject.localhost
感谢您的帮助!
【问题讨论】:
标签: angularjs gruntjs apache2 bower http-status-code-403