- 论坛徽章:
- 0
|
IIS使用的是81端口,Apache使用的是80。我想让apache解析PHP站点(shop.test.com),当不是shop.test.com的时候就访问IIS下的ASP站点。
配置这样写的:
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin python.san@gmail.com
DocumentRoot "d:/www/shopex"
ServerName shop.test.com
</VirtualHost>
<Directory "e:\web">
#Options +ExecCGI
RewriteEngine on
RewriteRule ^(.*) http://localhost:81/$1 [P]
</Directory>
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin python.san@gmail.com
DocumentRoot "d:/www/shopex"
ServerName v.test.com
</virtualHost>
#e:\web是IIS下的站点目录,"d:/www/shopex"是apache下的站点目录
现在实现了:shop.test.com 是Apache解析的PHP,但是v.test.com却也是Apache解析的PHP.怎么才能使v.test.com访问的是IIS下的站点呢? |
|