时间:2021-07-01 10:21:17 帮助过:10人阅读
- NameVirtualHost 218.17.19.19 #服务器IP地址
- <virtualhost 218.17.19.19=""> #域名所指向的IP
- DocumentRoot "E:/webroot/phpernote" #域名所指向的目录,注意""不可少
- ServerName www.phpernote.com #网站域名
- DirectoryIndex index.php index.html default.php index.html.var
- </virtualhost>
- <virtualhost 218.17.19.19=""> #第二个网站域名所指向的IP
- DocumentRoot "E:/webroot/example" #www.example.com要指向的目录
- ServerName www.example.com
- DirectoryIndex index.php index.htm index.html default.php index.html.var
- </virtualhost>
更多个虚拟主机(域名配置)依次类推。
http://www.bkjia.com/PHPjc/764129.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/764129.htmlTechArticleAPACHE同一IP配置多个域名,做web开发的应该非常熟悉了,不过还是总结一下防止以后搞忘了! 下面直接说该如何操作吧: 1.在windows2003下安...