我曾经使用 grunt serve
运行我的 Angular 项目
现在我需要它在我的 XAMPP 上运行,所以我将它安装到我的 C:\xampp\htdocs\
但即使在更改我的 httpd-xampp.conf
要求所有授予的内容也写在 SO 上
我也重新启动了我的 Apache。
我还缺少什么?
谢谢
最佳答案
请执行以下步骤:
- 您是否拥有 Angular 度项目文件夹的读取权限。
- 确保您已为您的 index.html 提供文档路径 例如:
<VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www/html ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost>
对于这个 index.html 应该在 html 文件夹中。
- Angular 应用程序所需的 Assets 文件失败的可能性很小。确保加载所有断言文件。
关于angularjs - 错误 403 - 带有 Angular 项目的 XAMPP,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34814098/