请问
我在IIS里可以运行PHP文件,为什么不能运行html ,htm
作者 110199 发布于 2003-09-00 分类:php基础编程
我对apache2.0.46 (在windows2000下) 的配置是按下面配的,可我找不到倒数第三行的 DirectoryIndex * ,不知到把“ DirectoryIndex index.php default.php index.htm index.html default.htm default.html ”加到什么地方?
对C:Apache2confhttpd.conf这个文件进行修改,
用记事本打开:找到: #NameVirtualHost * 修改为: NameVirtualHost 127.0.0.1 找到
ServerAdmin (你刚才安装时候输入的管理员信箱)
DocumentRoot c:Apache2htdocs
ServerName Apache2
ErrorLog c:Apache2logserror_log
CustomLog c:Apache2logsaccess_log common
找到: AddType application/x-tar .tgz在下面添加以下两行: AddType application/x-httpd-php .php
AddType image/x-icon .ico
找到: #LoadModule ssl_module modules/mod_ssl.so 在下面添加一行: LoadModule php4_module C:phpsapiphp4apache2.dll
增加默认文件:找到DirectoryIndex * 这行,可以这样修改,添加默认的文件名: DirectoryIndex index.php default.php index.htm index.html default.htm default.html 保存文件,重起apache服务器。
逛论坛交流:关于apache配置的问题
只直增加进去
是不是httpd.com 中还有什么要配置
3 条回复
回复