Doppelte Einträge in access_log

Alles, was den Apache betrifft, kann hier besprochen werden.

Doppelte Einträge in access_log

Postby rigix » 20. July 2007 22:31

Hallo Forumgemeinde!

Google hat mir bis jetzt auch nichts hergegeben, deshalb versuche ich es hier.
In meiner access_log werden pro Zugriff jedes mal zwei identische Einträge geschrieben. Ich kann mir leider nicht erklären wieso. Es ist mühsam, da das access_log doppelt so gross wird wie normal.

Meine Koordinaten:
RedHat ES 4.0, Apache 2.0.52, PHP 5.1.2, MySQL 5.0.18, TYPO3 4.1

Hier ein Auszug aus dem access_log:
Code: Select all
xx.xxx.xx.xx - - [20/Jul/2007:23:18:53 +0200] "GET /url_1/zum/file/index.html HTTP/1.1" 200 3394 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
xx.xxx.xx.xx - - [20/Jul/2007:23:18:53 +0200] "GET /url_1/zum/file/index.html HTTP/1.1" 200 3394 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"

xx.xxx.xx.xx - - [20/Jul/2007:23:18:55 +0200] "GET /url_2/zum/file/index.html HTTP/1.1" 200 3046 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
xx.xxx.xx.xx - - [20/Jul/2007:23:18:55 +0200] "GET /url_2/zum/file/index.html HTTP/1.1" 200 3046 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"


Hat jemand ähnliche Erfahrungen gemacht oder solche Phänomene bereits behoben?

Danke für eine hilfreiche Antwort...

Gruss -=rigix=-
rigix
 
Posts: 7
Joined: 20. July 2007 21:57

Postby DJ DHG » 20. July 2007 22:39

Moin Moin!

Mit fällt dazu spontan nur ein, dass vllt. folgende Direktive doppelt vorhanden ist?

Code: Select all
CustomLog logs/access_log common


mfg DJ DHG
User avatar
DJ DHG
AF Moderator
 
Posts: 2455
Joined: 27. December 2002 13:50
Location: Kiel

Postby rigix » 20. July 2007 22:50

Hallo DJ DHG

Danke für deinen Tipp! Habe ich auch gedacht, und mich nun nochmals versichert und überprüft ob es doch nicht zwei Einträge irgendwo gibt, da ich die Log-Direktive folgendermassen include:

Code: Select all
### httpd.conf ###
#CustomLog logs/access_log combined
Include conf.d/nolog.conf

### conf.d/nolog.conf ###
SetEnvIf Request_URI "\.css$" nolog=css
SetEnvIf Request_URI "\.gif$" nolog=gif
SetEnvIf Request_URI "\.ico$" nolog=ico
SetEnvIf Request_URI "\.jpg$" nolog=jpg
SetEnvIf Request_URI "\.js$" nolog=js
SetEnvIf Request_URI "\.png$" nolog=png

CustomLog logs/access_log combined env=!nolog


Es sieht also nicht nach doppelter Log-Direktive aus.

Gruss -=rigix=-
rigix
 
Posts: 7
Joined: 20. July 2007 21:57


Return to Apache

Who is online

Users browsing this forum: No registered users and 26 guests