我将目录复制到/opt/lampp/htdocs/xampp/dir-name
现在,当我启动服务器并转到localhost/xampp/dir-name/index.php
仅加载原始 html 而没有应用任何 css 或 js 时,chrome 控制台显示以下内容:
GET http://localhost/xampp/dir-name/css/normalize.css 403 (Forbidden) localhost/:13
GET http://localhost/xampp/dir-name/css/main.css 403 (Forbidden) localhost/:14
GET http://localhost/xampp/dir-name/js/vendor/modernizr-2.6.2.min.js 403 (Forbidden) localhost/:16
GET http://localhost/xampp/dir-name/images/zoom.png 403 (Forbidden)
// Many more like that.