Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Proxy issues with rewrite 2 Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
wafox
Newbie
Newbie


Joined: 27 October 2009
Online Status: Offline
Posts: 4
Posted: 03 November 2009 at 4:23pm | IP Logged Quote wafox

I'm having one hell of a time trying to do something pretty simple and I have a feeling something is up with my underlying configuration and was wondering if anyone had any ideas.

I had rewrite 3 installed and working fine but I needed to use rewrite 2 for some sharepoint proxy stuff I need to do.  I uninstalled rewrite 3 and installed rewrite 2 (and registered it and restarted everything).

Using simple rules basic stuff is working.  for example.  This simple to redirect rule works fine:

RewriteRule /test http://law7/test [I,R]

Any request to my front end IIS server with /test redirects the user to the internal server and displays my test page.

However when I change this rule to be a proxy rule:

RewriteRule /test http://law7/test [I,P]

I get a 404.

Furthermore when trying to use any RewriteProxy directives I get the same thing.  error 404's.  I've checked the permissions they are correct.

Any ideas on what would cause the proxy features to not work like this and how to fix it?

Thanks.

Back to Top View wafox's Profile Search for other posts by wafox
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 8118
Posted: 04 November 2009 at 7:50am | IP Logged Quote Lexey

Run the following command from the ISAPI_Rewrite install dir:

cscript proxycfg.vbs -r
Back to Top View Lexey's Profile Search for other posts by Lexey
 
pritamsingh98
Newbie
Newbie


Joined: 10 November 2009
Location: India
Online Status: Offline
Posts: 5
Posted: 10 November 2009 at 9:44am | IP Logged Quote pritamsingh98

thanx.........

__________________
Essay services | Custom Essay Papers
Back to Top View pritamsingh98's Profile Search for other posts by pritamsingh98 Visit pritamsingh98's Homepage
 
bleeper
Newbie
Newbie


Joined: 25 February 2010
Online Status: Offline
Posts: 6
Posted: 25 February 2010 at 2:48pm | IP Logged Quote bleeper

I have been trying to get this working for days.  Followed all the rules above. 

* Have the full version
* Have entered a license key
* have run cscript proxycfg.vbs -r
* have setup the most basic proxies, none work.

Need help. I have a production server I inherited that works fine, but i can't get this working on my test server
Back to Top View bleeper's Profile Search for other posts by bleeper
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 8118
Posted: 01 March 2010 at 11:57am | IP Logged Quote Lexey

Show your rules, test URL and corresponding IIS log record, please.
Back to Top View Lexey's Profile Search for other posts by Lexey
 
bleeper
Newbie
Newbie


Joined: 25 February 2010
Online Status: Offline
Posts: 6
Posted: 01 March 2010 at 1:48pm | IP Logged Quote bleeper

IIS Log:

#Software: Microsoft Internet Information Services 6.0
#Version: 1.0
#Date: 2010-03-01 18:05:09
#Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status
2010-03-01 18:05:09 W3SVC1 127.0.0.1 GET /x.isrwhlp proxy 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+5.2;+Trident/4.0;+.NET+CLR+1.1.4322) 404 0 2
2010-03-01 18:17:22 W3SVC1 127.0.0.1 GET /x.isrwhlp proxy 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+5.2;+Trident/4.0;+.NET+CLR+1.1.4322) 404 0 2

httpd.ini
[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]

RFStyle New

RewriteProxy ^(.*) http\://sd-winwebeperm1$1


The server logs for sd-winwebeperm1 show no activity.

Test URL: http://epermits-test.3ht.com

Back to Top View bleeper's Profile Search for other posts by bleeper
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 8118
Posted: 02 March 2010 at 10:00am | IP Logged Quote Lexey

Check that "ISAPI_Rewrite proxy" web extension is enabled (this could be done via IIS management console).
Back to Top View Lexey's Profile Search for other posts by Lexey
 
bleeper
Newbie
Newbie


Joined: 25 February 2010
Online Status: Offline
Posts: 6
Posted: 02 March 2010 at 10:55am | IP Logged Quote bleeper

It is enabled.

I am running Windows 2003 Server SP2 on a virtual machine.  It appears to be very similar to my working production environment (which I inherited so I don't know how it was setup) other than the Virtual Machine part.  Are there permissions related to networking etc. that I may need to set? 

I installed the software on my XP workstation with no issues.
Back to Top View bleeper's Profile Search for other posts by bleeper
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 8118
Posted: 02 March 2010 at 1:13pm | IP Logged Quote Lexey

You are getting 404. There are only three possible reasons for that:
1) Proxy extension mapping is not registered (not an option if you have run proxycfg.vbs script).
2) Proxy extension is not allowed to run in IIS.
3) IIS application corresponding to a root web site does not allow scripts to run (I have forgotten this option in the previous post).
Back to Top View Lexey's Profile Search for other posts by Lexey
 
bleeper
Newbie
Newbie


Joined: 25 February 2010
Online Status: Offline
Posts: 6
Posted: 02 March 2010 at 2:13pm | IP Logged Quote bleeper

I have run proxycfg.vbs, I made sure the extension is enabled and shows a green arrow.  The IIS application allows scripts.
Back to Top View bleeper's Profile Search for other posts by bleeper
 
bleeper
Newbie
Newbie


Joined: 25 February 2010
Online Status: Offline
Posts: 6
Posted: 02 March 2010 at 2:20pm | IP Logged Quote bleeper

Really simplifying things now:

This works (although not correctly since it redirects not proxies)
RewriteRule (.*)/test /epermits [I,R]

This gets a 404
RewriteRule (.*)/test /epermits [I,P]

There is a valid page at /epermits
Back to Top View bleeper's Profile Search for other posts by bleeper
 
bleeper
Newbie
Newbie


Joined: 25 February 2010
Online Status: Offline
Posts: 6
Posted: 03 March 2010 at 9:13am | IP Logged Quote bleeper

I just smoked my old setup installed a fresh copy of the OS and things are working now

Thanks
Back to Top View bleeper's Profile Search for other posts by bleeper
 

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