0

我在我的电脑上构建了一个简单的 Apache 服务器,我想将一个 json 文件放在一个特定的目录下(就像 htdocs/configCenter/jsonConfig/ 一样)。当我在浏览器中访问 /configCenter/jsonConfig/ 时,我想直接查看我的 json 文件。怎么做?谢谢!

4

1 回答 1

0

在目录的 htaccess 文件或 apache conf 中使用 DirectoryIndex 指令

于 2014-02-04T03:25:42.907 回答