Hello,

On Wed, Jun 13, 2001 at 05:37:53PM +0200, Peter Gervai wrote:
> Is there, or was there any bug which could cause oops to send
> fully qualified urls to webservers instead of teh local part only,
> like webservers would be proxies?
> 
> There were some requests like that but I cannot really spot whether
> oops did it, or some lame webclients.

I see no reply, so there are some logfiles:

proxy.tolna.net: Master - the proxy serving non-localnet content 
   to slaves and clients (oops)
kvantum.tolna.net: Slave - a slave, which caches local and nonlocal 
   traffic, local shall come from DIRECT, non-local from Master.


'www.csatolna.hu' is a local network content.


log on Slave:

992942128.000 13 127.0.0.1 TCP_MISS/200 4268 GET http://www.csatolna.hu/ - 
DIRECT/www.csatolna.hu text/html
992942131.000 7 127.0.0.1 TCP_REFRESH_MISS/200 511 GET http://www.csatolna.hu/ - 
NONE/proxy.tolna.net text/html

the request was the same always: telnet to localhost, and 
GET http://www.csatolna.hu/ HTTP/1.0\n\n


Master see no sign of this request (despite the NONE/proxy.tolna.net).


The webserver see:
kvantum.tolna.net - - [19/Jun/2001:11:14:36 +0200] "GET / HTTP/1.1" 200 3961 "-" "-" 0 
www.csatolna.hu
kvantum.tolna.net - - [19/Jun/2001:11:14:40 +0200] "GET http://www.csatolna.hu:80/ 
HTTP/1.1" 403 294 "-" "-" 0 www.csatolna.hu
kvantum.tolna.net - - [19/Jun/2001:11:14:44 +0200] "GET / HTTP/1.1" 200 3961 "-" "-" 0 
www.csatolna.hu
kvantum.tolna.net - - [19/Jun/2001:11:14:47 +0200] "GET http://www.csatolna.hu:80/ 
HTTP/1.1" 403 294 "-" "-" 0 www.csatolna.hu
kvantum.tolna.net - - [19/Jun/2001:11:15:28 +0200] "GET / HTTP/1.1" 200 3961 "-" "-" 0 
www.csatolna.hu
kvantum.tolna.net - - [19/Jun/2001:11:15:31 +0200] "GET http://www.csatolna.hu:80/ 
HTTP/1.1" 403 294 "-" "-" 0 www.csatolna.hu

Naturally every 2nd line is an error, the webserver cannot handle "proxy"
requests like 

GET http://something/ HTTP/1.0\n\n 

because it needs 

GET /something/ HTTP/1.0\n\n

so the request fail with a webserver error (no matter 1.0 or 1.1, I'm just
lazy to type Host: headers.)


The relevant config from Slave:

# next line doesn't really change the behaviour, either commented out or not
parent         proxy.tolna.net 3128
peer            proxy.tolna.net 3128    3130 {
                parent ;
                allow   dstdomain * ;
}
local-domain    kvantum.hu csatolna.hu tolna.net corynet.hu foobar.hu duma.hu
local-networks  10/8 192.168/16 195.70.46/24 193.227.196/22

group   local   {
        networks        192.168/16 127/8;
        badports        [0:79],110,138,139,513,[6000:6010] ;
        miss            allow;

        icp {
                allow   dstdomain * ;
        }
        http {
                allow   dstdomain * ;
        }
}



The detailed logfile from oops. I don't really follow what happens,
since it seems some copy is fetched from memory but the date is
fresh, and the webserver indicates that the transfer was in fact
done through net. Maybe you can see something I did miss.

Tue Jun 19 11:27:53 2001  [0x9e408]deny_http_access(): Connect from 127.0.0.1 - group 
[local] allowed.
Tue Jun 19 11:27:53 2001  [0x9e408]locate_url_on_disk(): www.csatolna.hu/:80 not found.
Tue Jun 19 11:27:53 2001  [0x9e408]locate_in_mem(): Not found.
Tue Jun 19 11:27:53 2001  [0x9e408]run_client(): read <http><www.csatolna.hu><80></> 
from the net.
Tue Jun 19 11:27:53 2001  [0x9e408]lookup_dns_cache(): It's here
Tue Jun 19 11:27:53 2001  [0x9e408]analyze_header(): ---> `HTTP/1.1 200 OK'.
Tue Jun 19 11:27:53 2001  [0x9e408]analyze_header(): Status code: 200
Tue Jun 19 11:27:53 2001  [0x9e408]analyze_header(): ---> `Date: Tue, 19 Jun 2001 
09:27:54 GMT'.
Tue Jun 19 11:27:53 2001  [0x9e408]analyze_header(): ---> `Server: Apache/1.3.9 (Unix) 
Debian/GNU mod_perl/1.21_03-dev mod_ssl/2.4.10 OpenSSL/0.9.4'.
Tue Jun 19 11:27:53 2001  [0x9e408]analyze_header(): ---> `Last-Modified: Thu, 14 Jun 
2001 12:40:22 GMT'.
Tue Jun 19 11:27:53 2001  [0x9e408]analyze_header(): ---> `ETag: "4aa5-f79-3b28b0b6"'.
Tue Jun 19 11:27:53 2001  [0x9e408]analyze_header(): ---> `Accept-Ranges: bytes'.
Tue Jun 19 11:27:53 2001  [0x9e408]analyze_header(): ---> `Content-Length: 3961'.
Tue Jun 19 11:27:53 2001  [0x9e408]analyze_header(): ---> `Connection: close'.
Tue Jun 19 11:27:53 2001  [0x9e408]analyze_header(): ---> `Content-Type: text/html'.
Tue Jun 19 11:27:53 2001  [0x9e408]fill_mem_obj(): Downgrade flags: 1
Tue Jun 19 11:27:53 2001  [0x9e408]fill_mem_obj(): Sending ready header `Date:' -> 
`Tue, 19 Jun 2001 09:27:54 GMT'.
Tue Jun 19 11:27:53 2001  [0x9e408]fill_mem_obj(): Sending ready header `Server:' -> 
`Apache/1.3.9 (Unix) Debian/GNU mod_perl/1.21_03-dev mod_ssl/2.4.10 OpenSSL/0.9.4'.
Tue Jun 19 11:27:53 2001  [0x9e408]fill_mem_obj(): Sending ready header 
`Last-Modified:' -> `Thu, 14 Jun 2001 12:40:22 GMT'.
Tue Jun 19 11:27:53 2001  [0x9e408]fill_mem_obj(): Sending ready header `ETag:' -> 
`"4aa5-f79-3b28b0b6"'.
Tue Jun 19 11:27:53 2001  [0x9e408]fill_mem_obj(): Sending ready header 
`Accept-Ranges:' -> `bytes'.
Tue Jun 19 11:27:53 2001  [0x9e408]fill_mem_obj(): Sending ready header 
`Content-Length:' -> `3961'.
Tue Jun 19 11:27:53 2001  [0x9e408]fill_mem_obj(): Sending ready header `Connection:' 
-> `close'.
Tue Jun 19 11:27:53 2001  [0x9e408]fill_mem_obj(): Sending ready header 
`Content-Type:' -> `text/html'.
Tue Jun 19 11:27:53 2001  [0x9e408]fill_mem_obj(): Loaded successfully: received: 4268
Tue Jun 19 11:27:56 2001  [0x9e408]deny_http_access(): Connect from 127.0.0.1 - group 
[local] allowed.
Tue Jun 19 11:27:56 2001  [0x9e408]run_client(): read <http:www.csatolna.hu:/> from 
mem.
Tue Jun 19 11:27:56 2001  [0x9e408]lookup_dns_cache(): It's here
Tue Jun 19 11:27:56 2001  [0x9e408]build_parent_request(): GET 
http://www.csatolna.hu:80/ HTTP/1.1
Tue Jun 19 11:27:56 2001  [0x9e408]build_parent_request(): Host: www.csatolna.hu
Tue Jun 19 11:27:56 2001  [0x9e408]build_parent_request(): Connection: close
Tue Jun 19 11:27:56 2001  [0x9e408]build_parent_request(): Via: kvantum:3128 (Oops 
1.5.18)
Tue Jun 19 11:27:56 2001  [0x9e408]analyze_header(): ---> `HTTP/1.0 403 Forbidden'.
Tue Jun 19 11:27:56 2001  [0x9e408]analyze_header(): Status code: 403
Tue Jun 19 11:27:56 2001  [0x9e408]analyze_header(): ---> `Date: Tue, 19 Jun 2001 
09:27:56 GMT'.
Tue Jun 19 11:27:56 2001  [0x9e408]analyze_header(): ---> `Server: Apache/1.3.9 (Unix) 
Debian/GNU mod_perl/1.21_03-dev mod_ssl/2.4.10 OpenSSL/0.9.4'.
Tue Jun 19 11:27:56 2001  [0x9e408]analyze_header(): ---> `Connection: close'.
Tue Jun 19 11:27:56 2001  [0x9e408]analyze_header(): ---> `Content-Type: text/html; 
charset=iso-8859-1'.
Tue Jun 19 11:27:56 2001  [0x9e408]continue_load(): Downgrade flags: 0
Tue Jun 19 11:27:56 2001  [0x9e408]send_from_mem(): From mem sended.
Tue Jun 19 11:27:56 2001  [0x1406]  <30min - 0
Tue Jun 19 11:27:56 2001  [0x1406]  <1hour - 0
Tue Jun 19 11:27:56 2001  [0x1406]  <3hour - 0
Tue Jun 19 11:27:56 2001  [0x1406]  <6hour - 0
Tue Jun 19 11:27:56 2001  [0x1406]   <1day - 281
Tue Jun 19 11:27:56 2001  [0x1406]   <3day - 3007
Tue Jun 19 11:27:56 2001  [0x1406]  <1week - 10649
Tue Jun 19 11:27:56 2001  [0x1406]  <2week - 123
Tue Jun 19 11:27:56 2001  [0x1406]  <month - 6
Tue Jun 19 11:27:56 2001  [0x1406]clean_disk(): Skip cleanup: 2422969 out of 2437120 
(99%) free.
Tue Jun 19 11:27:57 2001  [0x9e408]deny_http_access(): Connect from 127.0.0.1 - group 
[local] allowed.
Tue Jun 19 11:27:57 2001  [0x9e408]locate_url_on_disk(): www.csatolna.hu/:80 not found.
Tue Jun 19 11:27:57 2001  [0x9e408]locate_in_mem(): Not found.
Tue Jun 19 11:27:57 2001  [0x9e408]run_client(): read <http><www.csatolna.hu><80></> 
from the net.
Tue Jun 19 11:27:57 2001  [0x9e408]lookup_dns_cache(): It's here
Tue Jun 19 11:27:57 2001  [0x9e408]analyze_header(): ---> `HTTP/1.1 200 OK'.
Tue Jun 19 11:27:57 2001  [0x9e408]analyze_header(): Status code: 200
Tue Jun 19 11:27:57 2001  [0x9e408]analyze_header(): ---> `Date: Tue, 19 Jun 2001 
09:27:58 GMT'.
Tue Jun 19 11:27:57 2001  [0x9e408]analyze_header(): ---> `Server: Apache/1.3.9 (Unix) 
Debian/GNU mod_perl/1.21_03-dev mod_ssl/2.4.10 OpenSSL/0.9.4'.
Tue Jun 19 11:27:57 2001  [0x9e408]analyze_header(): ---> `Last-Modified: Thu, 14 Jun 
2001 12:40:22 GMT'.
Tue Jun 19 11:27:57 2001  [0x9e408]analyze_header(): ---> `ETag: "4aa5-f79-3b28b0b6"'.
Tue Jun 19 11:27:57 2001  [0x9e408]analyze_header(): ---> `Accept-Ranges: bytes'.
Tue Jun 19 11:27:57 2001  [0x9e408]analyze_header(): ---> `Content-Length: 3961'.
Tue Jun 19 11:27:57 2001  [0x9e408]analyze_header(): ---> `Connection: close'.
Tue Jun 19 11:27:57 2001  [0x9e408]analyze_header(): ---> `Content-Type: text/html'.
Tue Jun 19 11:27:57 2001  [0x9e408]fill_mem_obj(): Downgrade flags: 1
Tue Jun 19 11:27:57 2001  [0x9e408]fill_mem_obj(): Sending ready header `Date:' -> 
`Tue, 19 Jun 2001 09:27:58 GMT'.
Tue Jun 19 11:27:57 2001  [0x9e408]fill_mem_obj(): Sending ready header `Server:' -> 
`Apache/1.3.9 (Unix) Debian/GNU mod_perl/1.21_03-dev mod_ssl/2.4.10 OpenSSL/0.9.4'.
Tue Jun 19 11:27:57 2001  [0x9e408]fill_mem_obj(): Sending ready header 
`Last-Modified:' -> `Thu, 14 Jun 2001 12:40:22 GMT'.
Tue Jun 19 11:27:57 2001  [0x9e408]fill_mem_obj(): Sending ready header `ETag:' -> 
`"4aa5-f79-3b28b0b6"'.
Tue Jun 19 11:27:57 2001  [0x9e408]fill_mem_obj(): Sending ready header 
`Accept-Ranges:' -> `bytes'.
Tue Jun 19 11:27:57 2001  [0x9e408]fill_mem_obj(): Sending ready header 
`Content-Length:' -> `3961'.
Tue Jun 19 11:27:57 2001  [0x9e408]fill_mem_obj(): Sending ready header `Connection:' 
-> `close'.
Tue Jun 19 11:27:57 2001  [0x9e408]fill_mem_obj(): Sending ready header 
`Content-Type:' -> `text/html'.
Tue Jun 19 11:27:57 2001  [0x9e408]fill_mem_obj(): Loaded successfully: received: 4268
Tue Jun 19 11:27:59 2001  [0x9e408]deny_http_access(): Connect from 127.0.0.1 - group 
[local] allowed.
Tue Jun 19 11:27:59 2001  [0x9e408]run_client(): read <http:www.csatolna.hu:/> from 
mem.
Tue Jun 19 11:27:59 2001  [0x9e408]lookup_dns_cache(): It's here
Tue Jun 19 11:27:59 2001  [0x9e408]build_parent_request(): GET 
http://www.csatolna.hu:80/ HTTP/1.1
Tue Jun 19 11:27:59 2001  [0x9e408]build_parent_request(): Host: www.csatolna.hu
Tue Jun 19 11:27:59 2001  [0x9e408]build_parent_request(): Connection: close
Tue Jun 19 11:27:59 2001  [0x9e408]build_parent_request(): Via: kvantum:3128 (Oops 
1.5.18)
Tue Jun 19 11:27:59 2001  [0x9e408]analyze_header(): ---> `HTTP/1.0 403 Forbidden'.
Tue Jun 19 11:27:59 2001  [0x9e408]analyze_header(): Status code: 403
Tue Jun 19 11:27:59 2001  [0x9e408]analyze_header(): ---> `Date: Tue, 19 Jun 2001 
09:27:59 GMT'.
Tue Jun 19 11:27:59 2001  [0x9e408]analyze_header(): ---> `Server: Apache/1.3.9 (Unix) 
Debian/GNU mod_perl/1.21_03-dev mod_ssl/2.4.10 OpenSSL/0.9.4'.
Tue Jun 19 11:27:59 2001  [0x9e408]analyze_header(): ---> `Connection: close'.
Tue Jun 19 11:27:59 2001  [0x9e408]analyze_header(): ---> `Content-Type: text/html; 
charset=iso-8859-1'.
Tue Jun 19 11:27:59 2001  [0x9e408]continue_load(): Downgrade flags: 0
Tue Jun 19 11:27:59 2001  [0x9e408]send_from_mem(): From mem sended.
Tue Jun 19 11:28:00 2001  [0xc04]garbage_collector(): 17 dns hash entries.
Tue Jun 19 11:28:00 2001  [0xc04]flush_mem_chache: total_size: 7851031.
Tue Jun 19 11:28:00 2001  [0xc04]db_api_sync()
Tue Jun 19 11:28:02 2001  [0x803]statistics(): clients      : 1
Tue Jun 19 11:28:02 2001  [0x803]statistics(): http_requests: 3822
Tue Jun 19 11:28:02 2001  [0x803]statistics(): icp_requests : 0
Tue Jun 19 11:28:02 2001  [0x803]statistics(): req_rate     : 0/s
Tue Jun 19 11:28:02 2001  [0x803]statistics(): hits_rate    : 28%
Tue Jun 19 11:28:06 2001  [0x1406]  <30min - 0
Tue Jun 19 11:28:06 2001  [0x1406]  <1hour - 0
Tue Jun 19 11:28:06 2001  [0x1406]  <3hour - 0
Tue Jun 19 11:28:06 2001  [0x1406]  <6hour - 0
Tue Jun 19 11:28:06 2001  [0x1406]   <1day - 281
Tue Jun 19 11:28:06 2001  [0x1406]   <3day - 3007
Tue Jun 19 11:28:06 2001  [0x1406]  <1week - 10649
Tue Jun 19 11:28:06 2001  [0x1406]  <2week - 123
Tue Jun 19 11:28:06 2001  [0x1406]  <month - 6
Tue Jun 19 11:28:06 2001  [0x1406]clean_disk(): Skip cleanup: 2422969 out of 2437120 
(99%) free.
Tue Jun 19 11:28:07 2001  [0x9e408]process_call(): Accept called on 39
=====================================================================
If you would like to unsubscribe from this list send message to
[EMAIL PROTECTED] with "unsubscribe oops-eng" in message body.
Archive is accessible on http://www.paco.net/oops/

Дати відповідь електронним листом