Host not showing in access_log

13 views
Skip to first unread message

Euan Mee

unread,
Nov 10, 2015, 3:35:23 PM11/10/15
to mongoose-users
I would like to see which Host a request is being made for, especially for requests which are looking for '/' within a virtual host.

Currently the access_log only shows the host from the http request if specific files within the virtual host's directory tree are requested.

This is using the pre-compiled Binaries (Mongoose 5.6).

Currently, the access log file provides:

180.76.15.17 - - [09/Nov/2015:16:55:18 GMT Standard Time] "GET / HTTP/1.1" 200 0 - "Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)"
54.81.128.202 - - [09/Nov/2015:16:55:47 GMT Standard Time] "GET / HTTP/1.1" 200 0 - "Mozilla/5.0 (compatible)"
 
or, if the user agent requests lower-level information,
80.192.200.150 - - [09/Nov/2015:16:57:16 GMT Standard Time] "GET /css/gawainWeb.css HTTP/1.1" 200 0 "http://clubknight.uk.to/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36"

I want to have the HOST part of the http header reported in the access log, every time.  Is there a configuration setting to allow this?



Alternatively, could anyone quickly amend the standard binary so that it shows this?


Reply all
Reply to author
Forward
0 new messages