apache配置中遗漏的问题笔记
访问服务器时,页面出现一堆地址,如访问http://192.168.0.10 ,页面出现
test/
shop/
music/
解决方法:在apache 的httpd.conf的配置文件中,AddType application/x-gzip .gz .tgz下面加入如下:
AddType application/x-httpd-php .php
访问.php页面时,跳转为另存为
解决方法:在apache 的httpd.conf的配置文件中,查找DirectoryIndex,修改成如下:
DirectoryIndex index.html index.htm index.php
test/
shop/
music/
解决方法:在apache 的httpd.conf的配置文件中,AddType application/x-gzip .gz .tgz下面加入如下:
AddType application/x-httpd-php .php
访问.php页面时,跳转为另存为
解决方法:在apache 的httpd.conf的配置文件中,查找DirectoryIndex,修改成如下:
DirectoryIndex index.html index.htm index.php