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: How to correctly write RewriteProxy rule Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
rudidlo
Newbie
Newbie


Joined: 21 July 2006
Location: Czech Republic
Online Status: Offline
Posts: 6
Posted: 14 August 2008 at 8:34am | IP Logged Quote rudidlo

Hi all,

my work-mate has got two physical servers. On of them has a bottleneck at CPU and he wants to try to redirect some web traffic to another server. He asked me if I could help him making regular expression at server #1 to redirect all traffic to server #2 for week or so. I have tried make this rule at another server with no heavy workload.

At first, I wrote rule like this:

RewriteProxy /asp/hokusypokusy.asp http://chess\.hogan\.cz

, but error page with 403.1 message appeared.

I found a solution for this problem and followed steps, described in Configuration of the proxy module section in documentation and correctly ran cscript proxycfg.vbs with correct [MetabasePath] parameter.

Now I'm getting another error

HTTP Error 404.2 - File or directory not found: Lockdown policy prevents this request.
Internet Information Services (IIS)

Please, can you advice me, where I make mistakes? Machine is running  at IIS6 under W2003Server Web Edition.

Then you for any valuable answer,

Back to Top View rudidlo's Profile Search for other posts by rudidlo Visit rudidlo's Homepage
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 7598
Posted: 27 August 2008 at 2:37pm | IP Logged Quote Lexey

RewriteProxy /asp/hokusypokusy.asp http\://chess.hogan.cz/asp/hokusypokusy.asp [I]

But it will proxy only request to the /asp/hokusypokusy.asp itself. Request to linked resources (like images, CSSs, etc) will not be proxied.

Edited by Lexey - 27 August 2008 at 2:39pm
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