Topic: Proxy + Weird Header requests
|

|
| Author |
|
bigolslabomeat Newbie

Joined: 15 March 2005 Location: United Kingdom
Online Status: Offline Posts: 10
|
| Posted: 05 August 2008 at 11:48am | IP Logged
|
|
|
Hello All,
To me it looks like RewriteProxy is not passing all the headers over to the the target, but there is every chance that I have just done something wrong :)
My httpd.ini contains just this:
Code:
[ISAPI_Rewrite]
RewriteProxy (.+) http\://localhost\:81/repositories/$1 [U,C,H] |
|
|
Basically i use IIS on port 80 and I need apache for my Subversion repository, so rather than using funny ports for my svn, i thought a proxy would do the trick. it works for standard requests, but SVN uses odd headers like PROPFIND and it's causing a 400 error.
Have I done something wrong in config or does ISAPI_Rewrite just not support these additional headers?
Cheers!
|
| Back to Top |
|
| |
Lexey Moderator Group

Joined: 15 August 2002 Location: Russian Federation
Online Status: Offline Posts: 7598
|
| Posted: 07 August 2008 at 7:20pm | IP Logged
|
|
|
First, note that H flag forces proxy to send complete proxy server's Host header to a proxied server (including port number!).
Second, ISAPI_Rerwrite's proxy passes almost all headers to a proxied server except a small subset which should be removed for correct proxy operation (like Transfer-Encoding or authorization headers). (BTW, PROPFIND is not a header. It is a request method.)
Third, you hardly will be able to proxy all SVN requests because WEBDAV protocol (used by svn) stores absolute URLs in some request headers and bodies and ISAPI_Rewrite can do nothing with that. However, there were a few threads on this topic in this forum with partial solutions for most important requests.
|
| Back to Top |
|
| |
|
|
If you wish to post a reply to this topic you must first login
If you are not already registered you must first register
|
|
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
|