我有一个使用Zend Framework 2构建的PHP项目。我想要使用以下命令启动内置服务器进行开发:
sudo php -S localhost:8080 -t public/ public/index.php 所有Zend Frameowrk 2的功能都可以正常工作,但在检索资源时出现404错误。
这些资源位于public/css、public/img和public/js文件夹中。
GET http://localhost:8080/css/bootstrap.css [HTTP/1.1 404 Not Found 10ms] GET http://localhost:8080/css/dlu-tw-bootstrap.css [HTTP/1.1 404 Not Found 21ms] GET http://localhost:8080/css/style.css [HTTP/1.1 404 Not Found 35ms] GET http://localhost:8080/js/bootstrap.js [HTTP/1.1 404 Not Found 45ms]
你有没有任何想法如何允许内置服务器访问这些文件?
sudo php -S localhost:8080 -t public/ public/index.php 所有Zend Frameowrk 2的功能都可以正常工作,但在检索资源时出现404错误。
这些资源位于public/css、public/img和public/js文件夹中。
GET http://localhost:8080/css/bootstrap.css [HTTP/1.1 404 Not Found 10ms] GET http://localhost:8080/css/dlu-tw-bootstrap.css [HTTP/1.1 404 Not Found 21ms] GET http://localhost:8080/css/style.css [HTTP/1.1 404 Not Found 35ms] GET http://localhost:8080/js/bootstrap.js [HTTP/1.1 404 Not Found 45ms]
你有没有任何想法如何允许内置服务器访问这些文件?