At 08:51 24.08.2004 +0200, Andr� F�chsel wrote:


        http_port 80

        httpd_accel_host 10.0.10.102
        httpd_accel_port 8100
        httpd_accel_single_host on
        httpd_accel_uses_host_header on

Thus, when I connect directly to JBoss (http://10.0.10.102:8100), the access
log looks like this, and I get automatically the index.html page, which
forwards me to the index.jsp page:

10.0.1.55 - - [24/Aug/2004:08:32:24 +0100] "GET / HTTP/1.1" 302 -
10.0.1.55 - - [24/Aug/2004:08:32:24 +0100] "GET /index.html HTTP/1.1" 304 -
10.0.1.55 - - [24/Aug/2004:08:32:24 +0100] "GET /index.jsp HTTP/1.1" 200 2534

But when I connect through squid (http://192.168.200.12/), the access log
looks different and I am not shown the index.html page:

192.168.200.12 - - [24/Aug/2004:08:32:12 +0100] "GET / HTTP/1.0" 302 -

Did you notice the difference? Here the protocol is HTTP/1.0! Does squid
connect to the backend server with HTTP/1.0? Can this be configured somewhere?

More analysis follows: It seems, that it depends on "httpd_accel_uses_host_header on".
If I use Mozilla Firebird to connect to the squid proxy url using "http://192.168.200.12";,
the URL is REWRITTEN in the browser to "http://192.168.200.12:8100"; which is OF COURSE
wrong! If I use "http://192.168.200.12/index.html"; no rewriting happens and everything
works fine.


I tried to change the setting of "http_accel_uses_host_header off". But now more strange
things happen: If I try to connect to "http://192.168.200.12";, the URL is completely
rewritten to the proxied URL: "http://10.0.10.102:8100";. This is not the expected behavior
since squid should HIDE the internal addresses!


Could somebody help me with the correct squid settings? The faster the better, it is
unfortunately very urgent. :-) Thanks a lot.


Rgds.

Andre



Reply via email to