Reverse proxy and redirecting request.

Web Server reverse proxy and redirect. If reverse proxy instance wants to redirect every request using the following
syntax :
NameTrans fn="redirect" url-prefix="http://host:port/xyz"

It works fine in normal instances but it creates problem in reverse proxy
functionality. Reverse proxy have a thread named route_offline_thread which
uses "OPTIONS" HTTP method to find the health of the backend instance. The
result of the above is that OPTIONS request is also redirected and
route_offline_thread doesn't work properly. There is a very simple workaround
for this situation. Just do not redirect the OPTIONS request in RPP. Use the
following instead :

<If not $internal and not method = "OPTIONS">
    NameTrans fn="redirect" url-prefix="http://host:port/xyz"
</If>

Comments:

why would do some one want to send a redirect to the browser for every request. this is definitely very inefficient

so, what you are saying here is - web server cannot redirect OPTIONS method if you have configured a reverse proxy instance. that sounds like a bug to me. is that right ?

Posted by Sriram Natarajan on June 11, 2008 at 11:34 PM PDT #

Yes, it is a kind of bug in Web Server. Since redirection is customers specific and it is not possible to preconfigure this feature in rpp's obj.conf. It has to be fixed in RPP's code.

Posted by Basant on June 16, 2008 at 06:15 AM PDT #

Post a Comment:
Comments are closed for this entry.
About

Basant Kukreja

Search

Top Tags
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today