首页 > 技术文章 > nginx配置-为没有后缀的文件(实际上是有html文件)以html形式打开

phonecom 2018-03-09 23:52 原文

location ~ index.php@ {
  add_header content-type "text/html";
}

推荐阅读