Hello! After configuring proxy_html_module, I used ProxyPass as per http://www.apachetutor.org/admin/reverseproxies: ProxyPass /gqaf-web/ http://backend:8080/gqaf-web/ So that http://proxy/gqaf-web/gqaf:soi:PAR:TRE:0000001 redirects to http://backend:8080/gqaf-web/gqaf:soi:PAR:TRE:0000001 without changing the initial URL. That worked fine. However, the end user soon notified me that he wants http://proxy/gqaf:soi:PAR:TRE:0000001 to be redirected to http://backend:8080/gqaf-web/gqaf:soi:PAR:TRE:0000001 So how to tell apache that whenever it sees http://proxy/xxxxTRExxxxxx it redirects to http://backend:8080/gqaf-web/ xxxxTRExxxxxx? If I use again RewriteRule RewriteRule ^/(.*TRE.*) http://backend:8080/gqaf-web/$1 [R=301,L] This works well but the URL changes to http://backend:8080/gqaf-web/ xxxxTRExxxxxx in the browser RewriteRule ^/(.*TRE.*) http://backend:8080/gqaf-web/$1 [P,L] does not work either because the browser searches for the files in the proxy htdocs instead of the backend webapps so it displays File not Found Any idea? Thanks. --- Joshua Slive <joshua@xxxxxxxx> wrote: > On Sat, Mar 29, 2008 at 6:41 AM, Melanie Pfefer > <melanie_pfefer@xxxxxxxxxxx> wrote: > > Hello again, > > > > I read the document and I did not get the > correlation > > with my case. > > > > you said > > > > > the case. You can check that simply by looking > at > > > the source code of > > > the content sent back to your browser and see > if it > > > makes sense in the > > > context of the current URL. > > > > > > > All I can say is that if I use [R=301,L], the > rewrite > > works perfectly. > > > > If I use [P,L], the forwarding does not work: 2 > frames > > are indeed displayed but the pages are not. These > 2 > > pages are jsp and they are not displayed because > they > > are fetched in apache while they should be > fetched > > from the tomcat webapps. Is this what you meant > by > > "broken links"? > > > > Can you please also clarify what you want me to > check? > > I'll try to be more explicit. > > Say that http://backend/ has a page called > index.html. In that page, > there is an embedded frame that is referenced as > /frame1.html. When > you do a redirect, the browser makes a request for > http://backend/index.html and sees the frame link > and requests it as > http://backend/frame1.html. > > If you do a proxy, the client requests > http://proxy/backend/index.html > and the proxy then requests > http://backend/index.html. What it send > back to the client still references /frame1.html, > and the client > resolves that relative to the URL that IT requested. > Therefore it > sends a new request for http://proxy/frame1.html. > Obviously this URL > doesn't exist (it should be > http://proxy/backend/frame1.html) and > therefore the frameset doesn't display properly. > > If this is indeed the problem (and you verify that > simply by looking > at the content that is sent back and understanding > how the browser > resolves relative references), then it can be fixed > with proper > configuration of mod_proxy_html as explained in that > article. > > Joshua. > > --------------------------------------------------------------------- > The official User-To-User support forum of the > Apache HTTP Server Project. > See <URL:http://httpd.apache.org/userslist.html> for > more info. > To unsubscribe, e-mail: > users-unsubscribe@xxxxxxxxxxxxxxxx > " from the digest: > users-digest-unsubscribe@xxxxxxxxxxxxxxxx > For additional commands, e-mail: > users-help@xxxxxxxxxxxxxxxx > > ___________________________________________________________ Yahoo! For Good helps you make a difference http://uk.promotions.yahoo.com/forgood/ --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx