apache在windows Server 2008 上配置二级域名
需要怎么写啊?
是下载httpd.conf里还是可以写在httpd-vhost.conf里面
我的httpd-vhost.conf
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "d:/wamp/www"
ServerName www.我的域名.com
ServerAlias 我的域名.com
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "d:/wamp/www/w"
ServerName w.我的域名.com
ServerAlias w.我的域名.com
</VirtualHost>
------解决方案--------------------这是我本地配置,配置了四个
<VirtualHost 127.0.0.2:80>
ServerName www.bls.com
DocumentRoot E:/WWW/public_html
<Directory E:/WWW/public_html>
AllowOverride All
Options All
</Directory>
</VirtualHost>
<VirtualHost 127.0.0.3:80>
ServerName www.cls.com
DocumentRoot E:/dongfang/public_html
<Directory E:/dongfang/public_html>
AllowOverride All
Options All
</Directory>
</VirtualHost>
<VirtualHost 127.0.0.4:80>
ServerName www.ctsn.com
DocumentRoot E:/china_travel
<Directory E:/china_travel>
AllowOverride All
Options All
</Directory>
</VirtualHost>
<VirtualHost 127.0.0.5:80>
ServerName www.base.com
DocumentRoot E:/basebls/public_html
<Directory E:/basebls/public_html>
AllowOverride All
Options All
</Directory>
</VirtualHost>