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....
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
> 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 | |
|
|