首页| 论坛| 消息
主题:Apache绑定多个域名的问题
cai发表于 2005-09-24 12:35
解决办法:
打开http.conf
1,ServerName 127.0.0.1 修改成ServerName 202.112.11.22
2,#NameVirtualHost * 修改成"NameVirtualHost 202.112.11.22"
3,在文件最后面有虚拟主机格式,
#
# ServerAdmin [email protected]
# DocumentRoot /www/docs/dummy-host.example.com
# ServerName dummy-host.example.com
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#

简单的添加:

DocumentRoot usr/local/www/
ServerName www.mysite.com<
下一页 (1/3)
回帖(1):
1楼:在WIN下安装APACHE配置虚拟目录和UNIN下基本是一样的
就是修改httpd ..

全部回帖(1)»
最新回帖
收藏本帖
发新帖