Hide Proxied Application Appended Query String From Users Browser
I am using mod_rewrite to proxy an application and hide its true URL
succesfully, but the user still sees the query string that the application
generates when accessing its pages. How can I prevent the query string
from being passed to the users browser.
Accessing private.mydomain.com/myapp/main internally redirects and
displays in the browser window
private.mydomain.com/myapp/main?app_generated_query_string
Currently
1 - User navigates to public.mydomain.com 2 - This page is rewritten and
proxied to private.mydomain.com/myapp/main 3 -
private.mydomain.com/myapp/main internally redirects to
private.mydomain.com/myapp/main?app_generated_query_string 4 - User sees
in browser public.mydomain.com/?app_generated_query_string
I would like step 4 to instead show public.mydomain.com
Here is my current configuration
ProxyRequests Off ServerName PUBLIC.MYDOMAIN.COM ServerAlias
idmwebdl1.chop.edu RewriteEngine on RewriteRule ^/$
http://[private.mydomain.com]/myapp/main [P] ProxyPassReverse /
http://[private.mydomain.com]/myapp/main
BELOW IS TO ALOW CAPTCHA SERVLET TO WORK WHEN ACCESSING FROM
PUBLIC.MYDOMAIN.COM
ProxyPass /app1 http://[private.mydomain.com]/myapp
No comments:
Post a Comment