我使用的是 Linux,Elementary OS,并在 opt 中安装了 lampp。
My CSS and JS won't load. When I inspect my page through browser. The console says
Failed to load resource: the server responded with a status of 403 (Forbidden)
I'm really sure that my directories are correct.![This is my workspace](https://i.stack.imgur.com/wD33a.png)
This is the error
![enter image description here](https://i.stack.imgur.com/rADrb.png)
您需要更改文件夹 bootstrap/css 的权限。
您的超级用户可能能够访问它,但这并不意味着 apache 或 nginx 可以访问它,这就是为什么您仍然需要更改权限。
提示:我通常将此类文件夹设为 apache/nginx 的用户组所有者,并授予其 775 权限。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)