怎么让Apache解析不是以 .php 结尾的文件
- 拿到一份外包写的代码, 里面有以
.l
结尾的文件, 这类文件里面写的也是PHP
的代码 - 但是环境搭建完之后, 这一类的文件不能正常运行, 应该是不能正常解析, 求各位大哥指教下
- 本地环境:
lamp
- 站点配置如下:
<VirtualHost *:80> DocumentRoot "/data/wwwroot/www.crm1.test" ServerName www.crm1.test ServerAlias crm1.test ErrorLog "/data/wwwlogs/www.crm1.test_error_apache.log" CustomLog "/data/wwwlogs/www.crm1.test_apache.log" common <Directory "/data/wwwroot/www.crm1.test"> Options -Indexes +FollowSymlinks AllowOverride All Require all granted DirectoryIndex index.html index.php </Directory> </VirtualHost>
- 请求的结果如下:
推荐文章: