httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@gmail.com>
Subject Re: HTTP proxy working for folks on 2.1-dev?
Date Thu, 09 Sep 2004 11:00:27 GMT
On Thu, 09 Sep 2004 12:52:53 +0200, Mladen Turk <mturk@apache.org> wrote:
> 
> 
> Jeff Trawick wrote:
> > On Fri, 3 Sep 2004 12:30:34 -0400, Jeff Trawick <trawick@gmail.com> wrote:
> >>>
> >>>>
> >>>>192.168.1.11 - - [03/Sep/2004:12:05:59 -0400] "GET
> >>>>http://127.0.0.1:10101/cgi-bin/printenv HTTP/1.0" 404 236
> >>>>
> >>>>error log has:
> >>>>
> >>>>[Fri Sep 03 12:05:59 2004] [error] [client 127.0.0.1] File does not
> >>>>exist: proxy:http://127.0.0.1:10101/cgi-bin/printenv
> >>
> > I had time dig into it enough to get the feeling that it is something
> > that the balancer/worker folks ought to have a look at ;)  It would be
> > a big headstart knowing what is supposed to happen in the handler
> > hook.  See attached function call trace.  Does the balancer's handler
> > have to return OK?  Does the balancer's proxy-pre_request hook have to
> > return OK?
> 
> Just committed the needed changes to allow forward proxies.

I saw... definitely gets farther now... This shows how far it gets
when I configure mozilla to use Apache as HTTP proxy:

[Thu Sep 09 06:53:16 2004] [debug] mod_proxy.c(654): Trying to run
scheme_handler
[Thu Sep 09 06:53:16 2004] [debug] proxy_http.c(1195): proxy: HTTP:
serving URL http://planetsun.org/
[Thu Sep 09 06:53:16 2004] [debug] proxy_util.c(1483): proxy:
initialized worker for (*:0) min=0 max=25 smax=25
[Thu Sep 09 06:53:16 2004] [debug] proxy_util.c(1414): proxy: socket
is constructed
[Thu Sep 09 06:53:16 2004] [debug] proxy_util.c(1586): proxy: HTTP:
has acquired connection for (*:0)
[Thu Sep 09 06:53:16 2004] [debug] proxy_util.c(1640): proxy:
connecting http://planetsun.org/ to planetsun.org:80
[Thu Sep 09 06:53:16 2004] [debug] proxy_util.c(1789): proxy: HTTP:
fam 2 socket created to connect to *:0
[Thu Sep 09 06:53:16 2004] [debug] proxy_util.c(1880): proxy: HTTP:
connection complete to 194.70.142.72:80 (planetsun.org)
[Thu Sep 09 06:53:17 2004] [debug] proxy_http.c(1016): proxy: start body send
[Thu Sep 09 06:53:17 2004] [crit] [Thu Sep 09 06:53:17 2004] file
http_protocol.c, line 981, assertion "readbytes > 0" failed
[Thu Sep 09 06:53:18 2004] [notice] child pid 4606 exit signal Abort
(6), possible coredump in /export/home/trawick/inst/21

(gdb) where
#0  0xd116200c in _lwp_kill () from /lib/libc.so.1
#1  0xd115f24d in thr_kill () from /lib/libc.so.1
#2  0xd110c7af in raise () from /lib/libc.so.1
#3  0xd10eef34 in abort () from /lib/libc.so.1
#4  0x080cf256 in ap_log_assert (szExp=0x80fa235 "readbytes > 0",
szFile=0x80fa0f0 "http_protocol.c", nLine=981) at log.c:708
#5  0x08091d86 in ap_http_filter (f=0x823dff8, b=0x8232e58,
mode=AP_MODE_READBYTES, block=APR_BLOCK_READ, readbytes=0) at
http_protocol.c:981
#6  0x080da031 in ap_get_brigade (next=0x823dff8, bb=0x8232e58,
mode=AP_MODE_READBYTES, block=APR_BLOCK_READ, readbytes=0)
    at util_filter.c:474
#7  0x080e3c46 in net_time_filter (f=0x8233e30, b=0x8232e58,
mode=AP_MODE_READBYTES, block=APR_BLOCK_READ, readbytes=0) at
core.c:3768
#8  0x080da031 in ap_get_brigade (next=0x8233e30, bb=0x8232e58,
mode=AP_MODE_READBYTES, block=APR_BLOCK_READ, readbytes=0)
    at util_filter.c:474
#9  0x0808d4e9 in ap_proxy_http_process_response (p=0x8231f78,
r=0x8237fc8, backend=0x81e7e30, origin=0x82326b8, conf=0x8180598,
    server_portstr=0xcf66dd20 ":8080") at proxy_http.c:1027
#10 0x0808da6f in ap_proxy_http_handler (r=0x8237fc8,
worker=0x8186490, conf=0x8180598, url=0x8232658 "/", proxyname=0x0,
proxyport=0)
    at proxy_http.c:1254
#11 0x080828cf in proxy_run_scheme_handler (r=0x8237fc8,
worker=0x8186490, conf=0x8180598, url=0x8239216
"http://planetsun.org/",
    proxyhost=0x0, proxyport=0) at mod_proxy.c:1749
#12 0x08080419 in proxy_handler (r=0x8237fc8) at mod_proxy.c:656
#13 0x080cabb5 in ap_run_handler (r=0x8237fc8) at config.c:156
#14 0x080cb312 in ap_invoke_handler (r=0x8237fc8) at config.c:368
#15 0x08095864 in ap_process_request (r=0x8237fc8) at http_request.c:246
#16 0x0808fb2e in ap_process_http_connection (c=0x82320a0) at http_core.c:253
#17 0x080d719a in ap_run_process_connection (c=0x82320a0) at connection.c:42
#18 0x080d7586 in ap_process_connection (c=0x82320a0, csd=0x8231fb0)
at connection.c:175
#19 0x080c7305 in process_socket (p=0x8231f78, sock=0x8231fb0,
my_child_num=1, my_thread_num=24, bucket_alloc=0x8235f88) at
worker.c:520
#20 0x080c7a96 in worker_thread (thd=0x81e4418, dummy=0x817e650) at worker.c:856

> 
> Q:
> Is it possible to have forward and reverse proxies mixed together
> on the same box?

definitely

Mime
View raw message