Custom log format for Hiawatha behind a proxy
Calomel.org
10 December 2007, 23:26
Good morning,
Does Hiawatha allow one to specify a custom log format?
If you host a web server behind a web proxy, like Pound, then all connecting ips will come from the proxy according to the back end web server logs. Pound inserts a http header called "X-Forwarded-For" which has the ip address of the client the proxy forwarded the request for.
For example this is the custom log format using the X-Forwarded-For header for a lighttpd server in back of a Pound proxy.
#### accesslog format (enable for using Pound in front of Lighttpd)
accesslog.format = "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
Now, the logs show the originators ip address in Apache extended common log format and web log analizers like Webalizer and AwStats can revew the logs properly.
Hiawatha has peaked the interest of a few of my readers due to the fact that it was designed, "security first." I look forward to researching your webserver,
Calomel
http://calomel.org/
Hugo Leisink
12 December 2007, 10:24
No, Hiawatha has no such thing as a custom log format. Hiawatha supports 3 types of log formats: Hiawatha's own format, the Common Log Format and the Extended Common Log Format.
schoooler
19 January 2009, 00:02
Hi, i'm schoooler
I?m new to the forum and just saying hello.
Hugo Leisink
19 January 2009, 01:10
Welcome.
This topic has been closed.