i to była właściwa podpowiedz.
format wpisu do logu wygląda zdecydowanie ładniej.
Cytuj:
194.117.xxx.xxx 172.0.0.12 - - [19/Dec/2009:22:34:52 +0100] "GET /index_pliki/ramka3.htm HTTP/1.0" 304 - "http://83.1xxxxxxx/strona.htm" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
a żeby komuś to się przydało to zamieszczę mały instruktarz:
w pliku konfiguracyjnym apache należy znaleźć wpisy typu
Cytuj:
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
oraz
Cytuj:
CustomLog /var/log/httpd/access_log common
i zakomentować lub sie pozbyć, zaś w ich miejsce wstawić
Cytuj:
LogFormat "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-agent}i\"" combined
LogFormat "%h %{X-Forwarded-For}i %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-agent}i\"" combined_forwarded
SetEnvIfNoCase X-Forwarded-For "." from_proxy=1
CustomLog /var/log/httpd/access_log combined env=!from_proxy
CustomLog /var/log/httpd/access_log combined_forwarded env=from_proxy
nastepnie restart serwera http i jesli wszystko poprawnie przepisane to
nastapi komunikat
[Wykonane]
ps.
będziemy wiedzieć więcej