Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 3.0 support forum
 Helicon Tech : ISAPI_Rewrite 3.0 support forum
Subject Topic: IIS Issue Proxying website Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
HeliconTV
Newbie
Newbie


Joined: 04 July 2008
Online Status: Offline
Posts: 7
Posted: 04 July 2008 at 11:00am | IP Logged Quote HeliconTV

I am using a Windows 2000 server and have the ISAPI_Rewrite (latest version, downloaded today), and I am not able to get it to proxy correctly.  I installed the software and setup the ISAPI filter.  I am wanting for users to access http://www.domaintransport.com/track and get redirected to an apache webserver at this address http://servername.domain.com/track.php and the url stays http://www.domaintransport.com/track.  I have the httpd.ini file setup as such:
[ISAPI_Rewrite]

# 3600 = 1 hour
CacheClockRate 3600

RepeatLimit 32

# Block external access to the httpd.ini and httpd.parse.errors files
RewriteRule /httpd(?:\.ini|\.parse\.errors).* / [F,I,O]
# Block external access to the Helper ISAPI Extension
# RewriteRule .*\.isrwhlp / [F,I,O]
RewriteProxy http://www.domaintransport.com/Track(.+) http\://servername.domain.com/track.php$1 [I,U]

I have the virtual directory in IIS setup to redirect to the above address, and it is not working correctly.
Back to Top View HeliconTV's Profile Search for other posts by HeliconTV
 
Vyacheslav
Moderator Group
Moderator Group


Joined: 02 July 2008
Location: Ukraine
Online Status: Offline
Posts: 396
Posted: 04 July 2008 at 3:43pm | IP Logged Quote Vyacheslav

Please try this solution:

RewriteCond %{HTTP:Host} ^(?:www\.)?domaintransport\.com$
RewriteProxy ^track/?(.*)$ http\://servername.domain.com/track.php$1 [P,U]

Edited by Vyacheslav - 04 July 2008 at 3:44pm


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


Joined: 04 July 2008
Online Status: Offline
Posts: 7
Posted: 07 July 2008 at 6:22am | IP Logged Quote HeliconTV

I tried your solution, but it is still switching the address to the servername.domain.com address instead of proxying it.  I have IIS setup to redirect to the servername.domain.com address.  Is this how I should have IIS setup or what setup needs to be done within IIS to make this work?

Thanks!
Back to Top View HeliconTV's Profile Search for other posts by HeliconTV
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 3934
Posted: 08 July 2008 at 1:56am | IP Logged Quote Anton

It seems you are using ISAPI_Rewrite2.
Please try to use this config:

RewriteCond %{HTTP:Host} ^(?:www\.)?domaintransport\.com$
RewriteProxy ^/track/?$ http\://servername.domain.com/track.php [I,U]


__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
HeliconTV
Newbie
Newbie


Joined: 04 July 2008
Online Status: Offline
Posts: 7
Posted: 08 July 2008 at 6:08am | IP Logged Quote HeliconTV

What about the IIS settings?  When I tried what you sent, it redirects to this page http://servername.domain.com/track.php/x.isrwhlp instead of redirecting to http://servername.domain.com/track.php and masking it with http://www.domaintransport.com/track.  Any thoughts?  Thanks!
Back to Top View HeliconTV's Profile Search for other posts by HeliconTV
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 3934
Posted: 10 July 2008 at 4:52am | IP Logged Quote Anton

Please make sure you don't have ISAPI_Rewrite filter installed twice (globally and on per-site level), make sure you don't have v2.0 and v3.0 installed together, check proxy module registration as per http://www.isapirewrite.com/docs/#proxyConfig, and check if you don't have any other ISAPI filters installed (like isapi_redirect etc.).


__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
HeliconTV
Newbie
Newbie


Joined: 04 July 2008
Online Status: Offline
Posts: 7
Posted: 10 July 2008 at 6:03am | IP Logged Quote HeliconTV

I only have the ISAPI_Rewrite filter installed at the site level, and I am still unable to get it to proxy the address.  With the virtual directory under the site set to redirect to the other server, it will pull up the correct page but still isn't proxying the address.  Is there documentation on how to setup IIS or is there something else that I am missing?  Any help would be appreciated as I really need to get this setup in production or look for other alternatives.  Thanks!
Back to Top View HeliconTV's Profile Search for other posts by HeliconTV
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 3934
Posted: 14 July 2008 at 6:46am | IP Logged Quote Anton

And what version of ISAPI_Rewrite do you use?
If v2, then check installation of proxy module as per http://www.isapirewrite.com/docs/#proxyConfig.
And show IIS log for some non-working request.


__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
HeliconTV
Newbie
Newbie


Joined: 04 July 2008
Online Status: Offline
Posts: 7
Posted: 15 July 2008 at 7:03pm | IP Logged Quote HeliconTV

I am struggling with this.  Can you please provide for me instructions on how to setup the IIS settings and what my configuration file would need to look like.  Is there any other documentation available for this product?  I was looking for something to purchase that works, but so far this just isn't doing the job.  Any help would be greatly appreciated.  Thanks!
Back to Top View HeliconTV's Profile Search for other posts by HeliconTV
 
Vyacheslav
Moderator Group
Moderator Group


Joined: 02 July 2008
Location: Ukraine
Online Status: Offline
Posts: 396
Posted: 16 July 2008 at 4:43am | IP Logged Quote Vyacheslav

Hi HeliconTV!

Please provide your rewrite.log and error.log. But before, please make sure, that your httpd.conf contains these lines:
Code:
RewriteEngine On
RewriteLog rewrite.log
RewriteLogLevel 9
LogLevel debug


Also, before getting the logs, please clean up them.


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


Joined: 04 July 2008
Online Status: Offline
Posts: 7
Posted: 16 July 2008 at 7:19am | IP Logged Quote HeliconTV

I do not have rewrite.log, error.log, or httpd.conf files located on my server.  Where should they be located or how do I get them on there?  Thanks for your help!
Back to Top View HeliconTV's Profile Search for other posts by HeliconTV
 
Vyacheslav
Moderator Group
Moderator Group


Joined: 02 July 2008
Location: Ukraine
Online Status: Offline
Posts: 396
Posted: 16 July 2008 at 7:26am | IP Logged Quote Vyacheslav

What version of ISAPI_Rewrite are you using? Please tell full version string, e.g. 3.1.0.52

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


Joined: 04 July 2008
Online Status: Offline
Posts: 7
Posted: 16 July 2008 at 8:10am | IP Logged Quote HeliconTV

2.13.0072
Back to Top View HeliconTV's Profile Search for other posts by HeliconTV
 
Yaroslav
Moderator Group
Moderator Group


Joined: 15 August 2002
Online Status: Offline
Posts: 6446
Posted: 17 July 2008 at 5:46am | IP Logged Quote Yaroslav

But you are asking question to ISAPI_Rewrite 3 support forum and V3 syntax is different.
Please use the following rule with your V2 config:

RewriteCond Host: (?:www\.)?domaintransport\.com
RewriteProxy /track(.+) http\://servername.domain.com/track.php\?$1 [I,U]

__________________
Yaroslav Govorunov,
Helicon Tech
Back to Top View Yaroslav's Profile Search for other posts by Yaroslav Visit Yaroslav's Homepage
 

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