【发布时间】:2020-10-13 10:07:06
【问题描述】:
我的 Laravel 项目中有一个 server.php 文件。在我的电脑中,我可以命令 PHP -S localhost:8000 server.php 所以如果我向 localhost:8000 发出 HTTP 请求,它会去读取 server.php 文件。或者如果我输入这个 URL:localhost:8000/anything/anything it去读取 server.php 文件。但在我的 Linux 服务器中 如果我键入 domain/anything/anything 它会转到 var/www/anything/anything 并在那里阅读 index.php。但我只想读取 server.php 并将这些任何/任何内容传递给 server.php 文件并且不将它们视为目录。执行此工作的 apache 配置是什么?
【问题讨论】:
标签: linux laravel apache dns centos