Re: Apache 2.0 - Reverse Proxy and / or Mod_Rewrite Question

This is a discussion on Re: Apache 2.0 - Reverse Proxy and / or Mod_Rewrite Question within the Apache Web Server forums, part of the Web Server and Related Forums category; > http://my.server.com (Reverse Proxy Server) - enter user id and > password > > Result - http://my.realserver....


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-03-2004
Joachim Ring
 
Posts: n/a
Default Re: Apache 2.0 - Reverse Proxy and / or Mod_Rewrite Question

> http://my.server.com (Reverse Proxy Server) - enter user id and
> password
>
> Result - http://my.realserver.com/mail/user.n...ment&ui=inotes.
>
> The ReverseProxyServer is lost at this point and the user is working
> directly with the "real" Notes server, which is what we don't want.
>
>
> Question:
>
> Is there a Mod_Rewrite statement that covers everything sent to a
> domain, regardless of the path that is returned?


most probably mod_rewrite won't help here as it operates on requests
and not responses.

things to do:

- find out how the user is taken to his mailbox after login, main
options are http status 30x aka real redirect or funny games with
meta-refresh or javascript

- if it's a real redirect, it _should_ be possible to fix it with a
ProxyPassReverse statement matching the self-referential url exactly

- another option is to fool the notes server into thinking it's called
my.server.com instead of my.realserver.com, that way the
self-referential url's will always point to the proxy - don't ask me
what the equivalent of ServerName is under notes, though...

- the shotgun-debugging method:

LoadModule ext_filter_module
/usr/lib/apache2/modules/mod_ext_filter.so
ExtFilterDefine fixit mode=output intype=text/html cmd="/bin/sed \
s/http:\/\/my.realserver.com/http:\/\/my.server.com/g"
SetOutputFilter fixit

which will replace all occurences of http://my.realserver.com in all
output with http://my.server.com - more refined methods are certainly
advised here, also the performance impact of mod_ext_filter is
considerable and might be too much for a busy prod site.

- there's a third-party module by Nick Kew called mod_proxy_html which
does the above in a way which might be better suited to busy sites -
it's available under GPL which i hope won't spark a discussion on the
compatibility of GPL and apche license...

good luck,

joachim
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:05 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0