User Tools

Site Tools


cdn_apache_logging

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
cdn_apache_logging [2016/05/30 10:14]
flo
cdn_apache_logging [2016/05/30 10:14] (current)
flo [Preface]
Line 3: Line 3:
 ===== Preface ===== ===== Preface =====
  
-[[https://​www.cloudflare.com|CloudFlare]],​ just like [[https://​www.akamai.com/​us/​en/​cdn.jsp|Akamai]],​ is a [[https://​en.wikipedia.org/​wiki/​Content_delivery_network|CDN]] provider. [[https://​www.cloudflare.com|CloudFlare]] also offers free accounts. To be able to tell apart which requests came from the [[https://​en.wikipedia.org/​wiki/​Content_delivery_network|CDN]] and which from end users, one might adapt his [[https://​httpd.apache.org/​|Apache httpd]] logging settings to match below. This might come in handy when you'll have to identify this one single POST request sending over diffamatory speech, or so...+[[https://​www.cloudflare.com|CloudFlare]],​ just like [[https://​www.akamai.com/​us/​en/​cdn.jsp|Akamai]],​ is a [[https://​en.wikipedia.org/​wiki/​Content_delivery_network|CDN]] provider. [[https://​www.cloudflare.com|CloudFlare]] also offers free accounts. To be able to tell apart which requests came from the [[https://​en.wikipedia.org/​wiki/​Content_delivery_network|CDN]] and which from end users, one might adapt his [[https://​httpd.apache.org/​|Apache httpd]] logging settings to match below. This might come in handy when you'll have to identify this one single ​''​POST'' ​request sending over diffamatory speech, or so...
  
 The way this will be accomplished is creating a second log file in which the client IP is replaced with the ''​X-Forwarded-For''​ header'​s content. The default [[https://​httpd.apache.org/​|Apache httpd]] ''​combined''​ log format will log the [[https://​www.cloudflare.com|CloudFlare]] server hits. This also should be possible to achieve with other web servers like for example [[https://​www.nginx.com/​|NGINX]] or [[https://​www.lighttpd.net/​|LigHTTPD]]. The way this will be accomplished is creating a second log file in which the client IP is replaced with the ''​X-Forwarded-For''​ header'​s content. The default [[https://​httpd.apache.org/​|Apache httpd]] ''​combined''​ log format will log the [[https://​www.cloudflare.com|CloudFlare]] server hits. This also should be possible to achieve with other web servers like for example [[https://​www.nginx.com/​|NGINX]] or [[https://​www.lighttpd.net/​|LigHTTPD]].
cdn_apache_logging.txt ยท Last modified: 2016/05/30 10:14 by flo