|
|
Question : logformat to get full URL
|
|
current access log enteries are like the below ipaddress - - [02/Nov/2007:18:07:00 -0600] "GET /favicon.ico HTTP/1.1 " 200 3638 ipaddress - - [02/Nov/2007:17:59:06 -0600] "GET /cpg/themes/mac_ox_x/images/main_table_r1_c1.gif HTTP/1.1 " 200 64
I host multiple virtual hosts on a server and in order to distinguish the urls i.e use the google sitemap generator to read them differently i.e recognise them as different sites I need to have the full url like the below ipaddress - - [02/Nov/2007:17:59:06 -0600] "GET http://www.firstwebsite.com/cpg/themes/mac_ox_x/images/main_table_r1_c1.gif HTTP/1.1 " 200 64 ipaddress - - [02/Nov/2007:17:59:06 -0600] "GET www.secondwebsite.com/cpg/themes/mac_ox_x/images/main_table_r1_c1.gif HTTP/1.1 " 200 64
so that the various sites donot get mixed up by the google site map generator when it reads the URL.
I have tried tweaking logformat LogFormat "%h %l %u %t %v \"%r\" %>s %b" comonvhost
but the above does not give me the full URL. is there a way to record full urls with domain names in the accesslogs
thanks
|
Answer : logformat to get full URL
|
|
LogFormat "%h %l %u %t \"%m http://%v:%p%U\" %>s %b" commonf
|
|
|
|