From 978a6c928cd0b6d420dcf15e349776c8bfc65ebc Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Wed, 21 Apr 2021 17:03:38 +0200 Subject: Add awstats logs --- roles/awstats/templates/awstats.conf | 7 +++++++ roles/awstats/templates/logs.conf | 2 ++ 2 files changed, 9 insertions(+) create mode 100644 roles/awstats/templates/awstats.conf create mode 100644 roles/awstats/templates/logs.conf (limited to 'roles/awstats/templates') diff --git a/roles/awstats/templates/awstats.conf b/roles/awstats/templates/awstats.conf new file mode 100644 index 0000000..13a4d96 --- /dev/null +++ b/roles/awstats/templates/awstats.conf @@ -0,0 +1,7 @@ +LogFile="/var/log/httpd/{{ item }}_ssl_access.fixed.log" +LogType=W +LogFormat="%time1 %host %other %other %methodurl %bytesd" +SiteDomain={{ item }} +DNSLookup=1 +DynamicDNSLookup=1 +BuildReportFormat=xhtml diff --git a/roles/awstats/templates/logs.conf b/roles/awstats/templates/logs.conf new file mode 100644 index 0000000..e8a1965 --- /dev/null +++ b/roles/awstats/templates/logs.conf @@ -0,0 +1,2 @@ +CustomLog logs/{{ item }}_ssl_access.fixed.log combined + -- cgit