apache 一个目录配置多个域名都可以访问。
伊点阳光 2012-03-30 10:27:02 apache 2.2
在httpd-vhosts.conf里怎么配置一个域名都访问一个地方。
现在我的做法是配置三个VirtualHost,很正常,就是想把他们都整在一起。
试了一下:ServerName kj.scsyyjxh.org kj.scsyx.com kj.scsyx.org
这样做不行。
哪位知道怎么做。
<VirtualHost *:80>
ServerName kj.scsyyjxh.org
ProxyPass / http://localhost:89/
ProxyPassReverse / http://localhost:89/
</VirtualHost>
<VirtualHost *:80>
ServerName kj.scsyx.org
ProxyPass / http://localhost:89/
ProxyPassReverse / http://localhost:89/
</VirtualHost>
<VirtualHost *:80>
ServerName kj.scsyx.com
ProxyPass / http://localhost:89/
ProxyPassReverse / http://localhost:89/
</VirtualHost>