This forum has been moved here:
Helicon Tech Community Forum

ISAPI_Rewrite 3.0 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: RewriteProxy to sub domain
Author
Message |
boazbm
Newbie


Joined: 27 September 2011
Posts: 1
Posted: 27 September 2011 at 8:00am


Hello,

I am using ISAPI Rewrite 3.0 (build 3.1.0.73) on Windows
2003 with IIS6.

I need to do the following RewriteProxy -
I want www.mydomain.com/FirstDirectory to proxy content
from yyy.mydomain.com/FirstDirectory/SecondDirectory

I am using the following rules -
RewriteCond %{HTTP:Host} ^(?:www\.)?mydomain\.com$
RewriteCond %{REQUEST_URI} ^/FirstDirectory/(.*)
RewriteProxy FirstDirectory(.+)
http\://yyy.mydomain.com/FirstDirectory/SecondDirectory$1
[I,U]


And it just dose not work.


The log files shows the following -

RewriteCond: input='www.mydomain.com'
pattern='^(?:www\.)?mydomain\.com$' => matched
RewriteCond: input='/FirstDirectory/test/'
pattern='^/FirstDirectory/(.*)' => matched
forcing proxy-throughput with
http://yyy.mydomain.com/FirstDirectory/SecondDirectory/te
st/
go-ahead with proxy request
http://yyy.mydomain.com/FirstDirectory/SecondDirectory/te
st/ [OK]
Rewrite URL to >>
/FirstDirectory/test/x.rwhSecondDirectory?p=0
rewrite 'FirstDirectory/test/' ->
'/FirstDirectory/test/x.rwhSecondDirectory?p=0'
internal redirect with /FirstDirectory/test/x.rwhlp?p=0
[INTERNAL REDIRECT]


And I can see that no connection was made to server
yyy.mydomain.com (which is hosted on different servers
than www.mydoamin.com).

I have the same rules working just fine on the same
servers while proxing data from a server of a third party
(a different domain).

Any Ideas?

Thanks,
Boaz
Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 29 September 2011 at 4:35am

Well, the easiest way is to go to the server, where http://yyy.mydomain.com is hosted, launch IE, make a request http://yyy.mydomain.com/FirstDirectory/SecondDirectory/test/
in IE. In case it shows you the correct answer, then everything should be running with no issues.

Regards
Andrew
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version