设置默认网页
在httpd.conf中找到IfModule dir_module配置,在DirectoryIndex 中添加要作为默认网页的文件。
eg: DirectoryIndex index.html index.php
修改主机域名
- 解析IP域名:
在目录C:\Windows\System32\drivers\etc下找到hosts(无后缀名),添加主机名。
eg:127.0.0.1 www.php34.com
- 修改主机名:
在httpd.conf中找到ServerName ,并将名字改为自己设置的主机名。
eg:ServerName www.php34