Apache liefert zuviel aus.
Posted: 2004-07-26 14:58
Hallo!!! :-)
Ich habe ein sehr merkwürdiges Problem:
Ich habe einen Root-Server bei startlogic.com mit Red Hat 9. Dort liegen roundabout 7 Gb an .pdfs und .zips zum Download über http herum... jaja, ich weiss, über ftp wäre es besser, aber das hab' ich mir nicht einfallen lassen. Vor kurzer Zeit habe ich den Provider gewechselt und seitdem ich damit bei startlogic bin ist mit einem mal der Traffic von ca 250 Gb im Monat auf über 500 Gb gestiegen. Das kommt mir natürlich seeehr merkwürdig vor. Ich habe daraufhin in die Logdateien geguckt und dort steht sehr oft ein Ã?hnliches Muster wie dieses:
xxx.xxx.xxx.xxx - - [20/Jul/2004:06:00:15 -0700] "GET /dateien/datei.pdf HTTP/1.0" 200 937161 "http://www.referrer.xyy/seite.cfm" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)"
xxx.xxx.xxx.xxx - - [20/Jul/2004:06:00:17 -0700] "GET /dateien/datei.pdf HTTP/1.0" 200 937161 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)"
xxx.xxx.xxx.xxx - - [20/Jul/2004:06:00:20 -0700] "GET /dateien/datei.pdf HTTP/1.0" 206 739 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)"
xxx.xxx.xxx.xxx - - [20/Jul/2004:06:00:22 -0700] "GET /dateien/datei.pdf HTTP/1.0" 206 1024 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)"
xxx.xxx.xxx.xxx - - [20/Jul/2004:06:00:24 -0700] "GET /dateien/datei.pdf HTTP/1.0" 206 402 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)"
xxx.xxx.xxx.xxx - - [20/Jul/2004:06:00:19 -0700] "GET /dateien/datei.pdf HTTP/1.0" 206 456341 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)"
xxx.xxx.xxx.xxx - - [20/Jul/2004:06:00:37 -0700] "GET /dateien/datei.pdf HTTP/1.0" 206 298579 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)"
xxx.xxx.xxx.xxx - - [20/Jul/2004:06:00:44 -0700] "GET /dateien/datei.pdf HTTP/1.0" 206 218072 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)"
xxx.xxx.xxx.xxx - - [20/Jul/2004:06:00:34 -0700] "GET /dateien/datei.pdf HTTP/1.0" 206 424174 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)"
xxx.xxx.xxx.xxx - - [20/Jul/2004:06:01:00 -0700] "GET /dateien/datei.pdf HTTP/1.0" 206 129252 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)"
xxx.xxx.xxx.xxx - - [20/Jul/2004:06:01:06 -0700] "GET /dateien/datei.pdf HTTP/1.0" 206 61380 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)"
xxx.xxx.xxx.xxx - - [20/Jul/2004:06:01:14 -0700] "GET /dateien/datei.pdf HTTP/1.0" 206 13331 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)"
xxx.xxx.xxx.xxx - - [20/Jul/2004:06:01:13 -0700] "GET /dateien/datei.pdf HTTP/1.0" 206 45272 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)"
xxx.xxx.xxx.xxx - - [20/Jul/2004:06:01:05 -0700] "GET /dateien/datei.pdf HTTP/1.0" 206 161115 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)"
xxx.xxx.xxx.xxx - - [20/Jul/2004:06:01:20 -0700] "GET /dateien/datei.pdf HTTP/1.0" 206 3821 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)"
xxx.xxx.xxx.xxx - - [20/Jul/2004:06:01:22 -0700] "GET /dateien/datei.pdf HTTP/1.0" 206 4509 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)"
xxx.xxx.xxx.xxx - - [20/Jul/2004:06:01:14 -0700] "GET /dateien/datei.pdf HTTP/1.0" 206 117399 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)"
Wenn ich nun die Grössen zusammenzähle komme ich auf ca. 3,8 MB, obwohl die eigentliche Datei nur 937161 Byte gross ist... (Gleiche Grösse wie in den ersten Zeilen)
Kennt Ihr ein solches Verhalten? Normal kann das doch eigentlich nicht sein... Gibt es vielleicht eine bestimmte Einstellung beim Apache, die vielleicht bewirkt, dass nicht soviel geliefert wird? Das merkwürdige daran ist, dass diese Muster im Log sehr oft vorkommen und soviele doofe User, die ganz plötzlich seitdem ich einen neuen Server habe Spass dran haben Dateien doppelt und dreifach herunterzuladen gibt's doch nicht...
Wäre für jeden Tipp sehr dankbar.
Schöne Grüsse!
MH
Ich habe ein sehr merkwürdiges Problem:
Ich habe einen Root-Server bei startlogic.com mit Red Hat 9. Dort liegen roundabout 7 Gb an .pdfs und .zips zum Download über http herum... jaja, ich weiss, über ftp wäre es besser, aber das hab' ich mir nicht einfallen lassen. Vor kurzer Zeit habe ich den Provider gewechselt und seitdem ich damit bei startlogic bin ist mit einem mal der Traffic von ca 250 Gb im Monat auf über 500 Gb gestiegen. Das kommt mir natürlich seeehr merkwürdig vor. Ich habe daraufhin in die Logdateien geguckt und dort steht sehr oft ein Ã?hnliches Muster wie dieses:
xxx.xxx.xxx.xxx - - [20/Jul/2004:06:00:15 -0700] "GET /dateien/datei.pdf HTTP/1.0" 200 937161 "http://www.referrer.xyy/seite.cfm" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)"
xxx.xxx.xxx.xxx - - [20/Jul/2004:06:00:17 -0700] "GET /dateien/datei.pdf HTTP/1.0" 200 937161 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)"
xxx.xxx.xxx.xxx - - [20/Jul/2004:06:00:20 -0700] "GET /dateien/datei.pdf HTTP/1.0" 206 739 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)"
xxx.xxx.xxx.xxx - - [20/Jul/2004:06:00:22 -0700] "GET /dateien/datei.pdf HTTP/1.0" 206 1024 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)"
xxx.xxx.xxx.xxx - - [20/Jul/2004:06:00:24 -0700] "GET /dateien/datei.pdf HTTP/1.0" 206 402 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)"
xxx.xxx.xxx.xxx - - [20/Jul/2004:06:00:19 -0700] "GET /dateien/datei.pdf HTTP/1.0" 206 456341 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)"
xxx.xxx.xxx.xxx - - [20/Jul/2004:06:00:37 -0700] "GET /dateien/datei.pdf HTTP/1.0" 206 298579 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)"
xxx.xxx.xxx.xxx - - [20/Jul/2004:06:00:44 -0700] "GET /dateien/datei.pdf HTTP/1.0" 206 218072 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)"
xxx.xxx.xxx.xxx - - [20/Jul/2004:06:00:34 -0700] "GET /dateien/datei.pdf HTTP/1.0" 206 424174 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)"
xxx.xxx.xxx.xxx - - [20/Jul/2004:06:01:00 -0700] "GET /dateien/datei.pdf HTTP/1.0" 206 129252 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)"
xxx.xxx.xxx.xxx - - [20/Jul/2004:06:01:06 -0700] "GET /dateien/datei.pdf HTTP/1.0" 206 61380 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)"
xxx.xxx.xxx.xxx - - [20/Jul/2004:06:01:14 -0700] "GET /dateien/datei.pdf HTTP/1.0" 206 13331 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)"
xxx.xxx.xxx.xxx - - [20/Jul/2004:06:01:13 -0700] "GET /dateien/datei.pdf HTTP/1.0" 206 45272 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)"
xxx.xxx.xxx.xxx - - [20/Jul/2004:06:01:05 -0700] "GET /dateien/datei.pdf HTTP/1.0" 206 161115 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)"
xxx.xxx.xxx.xxx - - [20/Jul/2004:06:01:20 -0700] "GET /dateien/datei.pdf HTTP/1.0" 206 3821 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)"
xxx.xxx.xxx.xxx - - [20/Jul/2004:06:01:22 -0700] "GET /dateien/datei.pdf HTTP/1.0" 206 4509 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)"
xxx.xxx.xxx.xxx - - [20/Jul/2004:06:01:14 -0700] "GET /dateien/datei.pdf HTTP/1.0" 206 117399 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)"
Wenn ich nun die Grössen zusammenzähle komme ich auf ca. 3,8 MB, obwohl die eigentliche Datei nur 937161 Byte gross ist... (Gleiche Grösse wie in den ersten Zeilen)
Kennt Ihr ein solches Verhalten? Normal kann das doch eigentlich nicht sein... Gibt es vielleicht eine bestimmte Einstellung beim Apache, die vielleicht bewirkt, dass nicht soviel geliefert wird? Das merkwürdige daran ist, dass diese Muster im Log sehr oft vorkommen und soviele doofe User, die ganz plötzlich seitdem ich einen neuen Server habe Spass dran haben Dateien doppelt und dreifach herunterzuladen gibt's doch nicht...
Wäre für jeden Tipp sehr dankbar.
Schöne Grüsse!
MH