我想将以.pl为后缀的文件在浏览器中直接显示出来。方法如下:
1. 修改/etc/httpd/conf/httpd.conf文件,保证以下内容
DefaultType text/plain AddType text/plain .pl AddType text/plain .py
2. 重启Apache,则能在网页中显示以.pl和.py为后缀的文件了。
我想将以.pl为后缀的文件在浏览器中直接显示出来。方法如下:
1. 修改/etc/httpd/conf/httpd.conf文件,保证以下内容
DefaultType text/plain AddType text/plain .pl AddType text/plain .py
2. 重启Apache,则能在网页中显示以.pl和.py为后缀的文件了。