Hi,
mod_proxy currently drives me crazy.
I have a webserver running sarge, which has a local network connection
to a windows box running a fastreport server
I have this bit of configuration in sarges apache:
ProxyPass /test
http://192.168.0.1:1234/result
Connecting to this through the local network works (from windows->sarge):
http://192.168.0.1:1234/result?report=test.fr3&format=pdf (I get the pdf)
But this does not:
http://www.mysite.net/test?report=test.fr3&format=pdf
It seems to attack the windows box with the correct url, but somehow
it does not get the pdf file back.
Is redirects my browser to this non-existing url:
http://www.mysite.net/sid_f1052558031/result.pdf
Here a part of the apache log:
[Thu Nov 09 16:20:59 2006] [debug]
/home/skx/apache2-2.0.54/build-tree/apache2/modules/proxy/proxy_http.c(67):
proxy: HTTP: canonicalising URL //192.168.0.1:1234/result
[Thu Nov 09 16:20:59 2006] [debug]
/home/skx/apache2-2.0.54/build-tree/apache2/modules/proxy/mod_proxy.c(418):
Trying to run scheme_handler
[Thu Nov 09 16:20:59 2006] [debug]
/home/skx/apache2-2.0.54/build-tree/apache2/modules/proxy/proxy_http.c(1075):
proxy: HTTP: serving URL
http://192.168.0.1:1234/result?report=test.fr3&format=pdf
[Thu Nov 09 16:20:59 2006] [debug]
/home/skx/apache2-2.0.54/build-tree/apache2/modules/proxy/proxy_http.c(186):
proxy: HTTP connecting
http://192.168.0.1:1234/result?report=test.fr3&format=pdf to
192.168.0.1:1234
[Thu Nov 09 16:20:59 2006] [debug]
/home/skx/apache2-2.0.54/build-tree/apache2/modules/proxy/proxy_util.c(1139):
proxy: HTTP: fam 2 socket created to connect to 192.168.0.1
[Thu Nov 09 16:20:59 2006] [debug]
/home/skx/apache2-2.0.54/build-tree/apache2/modules/proxy/proxy_http.c(336):
proxy: socket is connected
[Thu Nov 09 16:20:59 2006] [debug]
/home/skx/apache2-2.0.54/build-tree/apache2/modules/proxy/proxy_http.c(370):
proxy: connection complete to 192.168.0.1:1234 (192.168.0.1)
[Thu Nov 09 16:21:07 2006] [debug]
/home/skx/apache2-2.0.54/build-tree/apache2/modules/proxy/proxy_http.c(909):
proxy: start body send
[Thu Nov 09 16:21:07 2006] [debug]
/home/skx/apache2-2.0.54/build-tree/apache2/modules/proxy/proxy_http.c(969):
proxy: end body send
[Thu Nov 09 16:21:07 2006] [error] [client 1.2.3.4] File does not exist:
/home/www-data/mysite.net/sid_f1052558031
Can someone tell me what's wrong here...?
regards,
yves