Chinaunix
标题:
apache把凡是包含.php的文件都解析成脚本了。
[打印本页]
作者:
wildlily980
时间:
2012-04-04 18:33
标题:
apache把凡是包含.php的文件都解析成脚本了。
比如
*.php.txt
*.php.abc
我查了httpd.conf发现也没有什么特别的?如何禁止它把*.php.txt当成脚本?
hostgator主机
php.conf
#
# Cause the PHP interpreter to handle files with a .php extension.
#
AddHandler php5-script .php
AddType text/html .php
#
httpd.conf
GracefulShutDownTimeout 3
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
作者:
wildlily980
时间:
2012-04-09 11:00
太难了,google不到
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2