摘要: 问题描述 搭建nginx服务后,在index.html文件中嵌入php代码,浏览器会将php代码注释掉,进而不解释php代码。 解决方法 ​ 首先修改nginx.conf配置文件(或者其他的nginx配置文件),修改内容如下: location ~ \.php|\.html$ { // 修改位置,原 阅读全文
posted @ 2021-05-26 13:12 insistYuan 阅读(497) 评论(0) 推荐(1) 编辑