Re: [users@httpd] Reverse Proxy / Redirection /mod_ext_filter / mod_headers

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

 



Joshua, 

You were right about Location. The Reverse Proxy must handle it.
I made some snoop trace and i confirmed you that the destination ip address is 
Hard coded in the response.

So, i'm still trying to use mod_ext_filter.so to rewrite each
occurence of 192.168.1.195.

This is what i've done in httpd.conf : 

ExtFilterDefine fixtext mode=output intype=text/html 
cmd="/usr/bin/sed s/http:\/\/192\.168\.1\.195/http:\/\/ReverseProxy/g"

<Proxy *>
  Order allow,deny
  Allow from all
  SetOutputFilter fixtext
  ExtFilterOptions DebugLevel=3
</Proxy>

This is what i get from the log : 
[Thu Apr 28 13:36:54 2005] [debug] proxy_http.c(67): proxy: HTTP:
canonicalising URL //192.168.1.195:8000/
[Thu Apr 28 13:36:54 2005] [debug] mod_proxy.c(418): Trying to run
scheme_handler
[Thu Apr 28 13:36:54 2005] [debug] proxy_http.c(1059): proxy: HTTP:
serving URL http://192.168.1.195:8000/
[Thu Apr 28 13:36:54 2005] [debug] proxy_http.c(186): proxy: HTTP
connecting http://192.168.1.195:8000/ to 192.168.1.195:8000
[Thu Apr 28 13:36:54 2005] [debug] proxy_util.c(1139): proxy: HTTP:
fam 2 socket created to connect to 192.168.1.195
[Thu Apr 28 13:36:54 2005] [debug] proxy_http.c(336): proxy: socket is connected
[Thu Apr 28 13:36:54 2005] [debug] proxy_http.c(370): proxy:
connection complete to 192.168.1.195:8000 (192.168.1.195)
[Thu Apr 28 13:36:55 2005] [debug] proxy_http.c(893): proxy: start body send
[Thu Apr 28 13:36:55 2005] [debug] mod_ext_filter.c(605): [client
192.168.2.47] filtering `/' of type `text/html'
 through `/usr/bin/sed', cfg ExtFilterOptions DebugLevel=3 NoLogStderr
!PreserveContentLength ExtFilterInType tex
t/html ExtFilterOuttype (unchanged)
[Thu Apr 28 13:36:55 2005] [error] [client 192.168.2.47] (32)Broken
pipe: apr_file_write(child input), len 0
[Thu Apr 28 13:36:55 2005] [debug] proxy_http.c(953): proxy: end body send

It seems there is a problem with mod_ext_filter : 
[Thu Apr 28 13:36:55 2005] [error] [client 192.168.2.47] (32)Broken
pipe: apr_file_write(child input), len 0

How can i solve it ? What is the mistake in my configuration ?

Thanks for you  help.

King Regards,

Farid 

On 4/27/05, Joshua Slive <jslive@xxxxxxxxx> wrote:
> On 4/27/05, Farid Izem <farid.izem@xxxxxxxxx> wrote:
> > Dear Joshua,
> >
> > Aren't you saying Apache Reverse Proxy is able to rewrite any
> > occurences of a the
> > Destination ip address without any external module even if the ip
> > address or fully
> > Qualified Domain is hard coded in the body of the Internet Page ?
> 
> I didn't notice the <meta refresh>.  ProxyPassReverse will rewrite the
> Location HTTP response header, and I expect that the browser will use
> that in preference to the <meta refresh> tag.
> 
> 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
> 
>

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