
Apache配置域名之后,我们还需要对Apache项目配置一个默认主页作为欢迎界面
进入Apache的conf目录
打开httpd.conf文件输入:
在文件末位添加:
Options Indexes FollowSymLinks Includes
AllowOverride None
Order allow,deny
Allow from all
DirectoryIndex blog_index.php default.php index.html
另一种方法:
3.1:查找# Virtual hosts
3.2:
将# Include conf/extra/httpd-vhosts.conf前面的“#”去掉
3.3:
打开Apache目录下Apache2.2\conf\extra\httpd-vhosts.conf文件
3.4:在文件末尾添加
Options Indexes FollowSymLinks Includes
AllowOverride None
Order allow,deny
Allow from all
DirectoryIndex blog_index.php default.php index.html
重启
输入blog.com如果能正常访问项目主页则成功
还可以参考我的绑定域名
还可以参考我的配置虚拟目录
