Re: url redirection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Josh, all,

I am sorry to keep this thread up. My Objective is to
have http://proxy/gqaf:soi:PAR:TRE:0000001 rewritten
to
http://backend:8080/gqaf-web/gqaf:soi:PAR:TRE:0000001
without changing the URL on the browser.


***
RewriteEngine On
RewriteRule ^/(.*gqaf:soi:PAR:TRE.*)
http://backend:8080/gqaf-web/$1 [P,L]
***


[Tue Apr 01 15:47:10 2008] [error] [client
172.21.194.71] File does not exist:
/usr/local/apache2/htdocs/gqaf-web, referer:
http://proxy/gqaf:soi:PAR:TRE:0000001
[Tue Apr 01 15:47:10 2008] [error] [client
172.21.194.71] File does not exist:
/usr/local/apache2/htdocs/tree.jsp, referer:
http://proxy/gqaf:soi:PAR:TRE:0000001
[Tue Apr 01 15:47:10 2008] [error] [client
172.21.194.71] File does not exist:
/usr/local/apache2/htdocs/content.jsp, referer:
http://proxy/gqaf:soi:PAR:TRE:0000001


I thought of adding:
***
ProxyHTMLLogVerbose On
LogLevel Debug
SetOutputFilter  proxy-html
ProxyHTMLURLMap http://backend:8080/gqaf-web/   
gqaf-web/ 
***

I still receive the same message:

[Tue Apr 01 17:24:16 2008] [error] [client
172.21.194.71] File does not exist:
/usr/local/apache2/htdocs/gqaf-web, referer:
http://proxy/gqaf:soi:PAR:TRE:0000001
[Tue Apr 01 17:24:16 2008] [error] [client
172.21.194.71] File does not exist:
/usr/local/apache2/htdocs/tree.jsp, referer:
http://proxy/gqaf:soi:PAR:TRE:0000001
[Tue Apr 01 17:24:16 2008] [error] [client
172.21.194.71] File does not exist:
/usr/local/apache2/htdocs/content.jsp, referer:
http://proxy/gqaf:soi:PAR:TRE:0000001


I added

<Location /gqaf-web/>
        ProxyPassReverse /
        SetOutputFilter  proxy-html
        ProxyHTMLURLMap  /      /gqaf-web/
        ProxyHTMLURLMap  /gqaf-web  /gqaf-web
        RequestHeader    unset  Accept-Encoding
</Location>


I got a segmentation fault:

[Tue Apr 01 17:48:39 2008] [info] [client
172.21.194.71] Got charset ISO-8859-1 from HTML META
[Tue Apr 01 17:48:42 2008] [notice] child pid 17180
exit signal Segmentation fault (11)


Could you please assist?
thanks.

--- Joshua Slive <joshua@xxxxxxxx> wrote:

> On Mon, Mar 31, 2008 at 7:08 AM, Melanie Pfefer
> <melanie_pfefer@xxxxxxxxxxx> wrote:
> > Hello!
> >  After configuring proxy_html_module, I used
> ProxyPass
> >  as per
> >  http://www.apachetutor.org/admin/reverseproxies:
> 
> >  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
> 
> This is where you need to properly configure
> mod_proxy_html as per the
> section "Fixing HTML Links" in the above referenced
> document. I'm not
> a mod_proxy_html expert, so I can't give you the
> details off the top
> of my head. But if you are worried about using
> RewriteRule instead of
> ProxyPass, I don't believe that is a problem. All
> the other directives
> should work the same.
> 
> 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
> 
> 



      __________________________________________________________
Sent from Yahoo! Mail.
A Smarter Inbox http://uk.docs.yahoo.com/nowyoucan.html

---------------------------------------------------------------------
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


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux