Apache配置默认主页
1、进入Apache的conf目录

2、打开httpd.conf文件输入:
在文件末位添加:
<Directory "F:/www_php/blog_com/my_blog">
Options Indexes FollowSymLinks Includes
AllowOverride None
Order allow,deny
Allow from all
DirectoryIndex blog_index.php default.php index.html
</Directory>
3、另一种方法:
3.1:查找# Virtual hosts
3.2:
将# Include conf/extra/httpd-vhosts.conf前面的“#”去掉
3.3:
打开Apache目录下Apache2.2\conf\extra\httpd-vhosts.conf文件
3.4:在文件末尾添加
<Directory "F:/www_php/blog_com/my_blog">
Options Indexes FollowSymLinks Includes
AllowOverride None
Order allow,deny
Allow from all
DirectoryIndex blog_index.php default.php index.html
</Directory>
4、重启
1、输入blog.com如果能正常访问项目主页则成功
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:57
阅读量:84
阅读量:130
阅读量:107
阅读量:117