Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x support forum
 Helicon Tech : ISAPI_Rewrite 2.x support forum
Subject Topic: Proxy to a different domain Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
colorwhite
Newbie
Newbie


Joined: 29 September 2008
Online Status: Offline
Posts: 21
Posted: 03 October 2008 at 7:18pm | IP Logged Quote colorwhite

Hello:

In another post, I have requested for this, but I'm afraid I had not explained clearly.

www.abc.com and www.domain.com  
are bound to different sites in IIS 6.
And the sub-domain a.abc.com was bound to the site of www.domain.com

What I want is:
when users request for a.abc.com, showing contents from www.abc.com but not www.domain.com , and the browser url keeps showing a.abc.com's, just as it was bound to www.abc.com

Can this happen?
Thanks

__________________
God save a girl for me...
Back to Top View colorwhite's Profile Search for other posts by colorwhite
 
Vyacheslav
Moderator Group
Moderator Group


Joined: 02 July 2008
Location: Ukraine
Online Status: Offline
Posts: 673
Posted: 06 October 2008 at 5:18am | IP Logged Quote Vyacheslav

Hi,
Please try this:
Code:
RewriteCond Host: a\.abc\.com
RewriteRule (.*) http\://www.abc.com$1 [I,L,P]


__________________
Kind regards!
Vyacheslav Shinkarenko, HeliconTech.
Back to Top View Vyacheslav's Profile Search for other posts by Vyacheslav Visit Vyacheslav's Homepage
 
colorwhite
Newbie
Newbie


Joined: 29 September 2008
Online Status: Offline
Posts: 21
Posted: 06 October 2008 at 6:20pm | IP Logged Quote colorwhite

Vyacheslav wrote:
Hi,
Please try this:
Code:
RewriteCond Host: a\.abc\.com
RewriteRule (.*) http\://www.abc.com$1 [I,L,P]


Hi Vyacheslav:
This rule does not work.
I add this rule to the www.domain.com's httpd.ini file since a.abc.com is bound to this site, but the browser says could not find the page.

Please be noted www.abc.com and www.domain.com are on the same server and a.abc.com was bould to www.domain.com

Any other rules could try? thanks

__________________
God save a girl for me...
Back to Top View colorwhite's Profile Search for other posts by colorwhite
 
colorwhite
Newbie
Newbie


Joined: 29 September 2008
Online Status: Offline
Posts: 21
Posted: 06 October 2008 at 6:21pm | IP Logged Quote colorwhite

I had also tried to add the rule to the global ini file, the same result.

Best regards

__________________
God save a girl for me...
Back to Top View colorwhite's Profile Search for other posts by colorwhite
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 7565
Posted: 08 October 2008 at 2:06pm | IP Logged Quote Lexey

You may need to configure .isrwhlp extension mappings by running
cscript proxycfg.vbs -r
command from the ISAPI_Rewrite installation folder.
Back to Top View Lexey's Profile Search for other posts by Lexey
 
colorwhite
Newbie
Newbie


Joined: 29 September 2008
Online Status: Offline
Posts: 21
Posted: 08 October 2008 at 6:30pm | IP Logged Quote colorwhite

Lexey wrote:
You may need to configure .isrwhlp extension mappings by running
cscript proxycfg.vbs -r
command from the ISAPI_Rewrite installation folder.

Thanks,Lexey:

It does work after script registration.
May you let me know what does it mean by runing "proxycfg.vbs -r"?
Why this not supported by default?

Thanks a lot



__________________
God save a girl for me...
Back to Top View colorwhite's Profile Search for other posts by colorwhite
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 7565
Posted: 14 October 2008 at 12:56pm | IP Logged Quote Lexey

proxycfg script adds script mappings for the proxy extension to the IIS metabase if they are missing. This action is not needed in default IIS configuration, so installer does not do it.
Back to Top View Lexey's Profile Search for other posts by Lexey
 
mattkurp
Newbie
Newbie


Joined: 31 October 2008
Online Status: Offline
Posts: 1
Posted: 31 October 2008 at 3:05pm | IP Logged Quote mattkurp

I am having a similar problem with version 3, but this script does not seem to be available in the version 3 installer package.  Is it ok to try the script in the version 2 package in a version 3 installation?
Back to Top View mattkurp's Profile Search for other posts by mattkurp
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 7565
Posted: 04 November 2008 at 4:41pm | IP Logged Quote Lexey

No, most probably this script will not work for v3.
Back to Top View Lexey's Profile Search for other posts by Lexey
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum