httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Farid Izem <farid.i...@gmail.com>
Subject Re: [users@httpd] Reverse Proxy / Redirection /mod_ext_filter / mod_headers
Date Thu, 28 Apr 2005 12:03:53 GMT
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@gmail.com> wrote:
> On 4/27/05, Farid Izem <farid.izem@gmail.com> 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@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
>

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message