From 5464f91f57a345688f7add5e3b51b91a70d2b1e3 Mon Sep 17 00:00:00 2001 From: Tim Moody Date: Sun, 29 Dec 2019 14:05:34 -0500 Subject: [PATCH] fix awstats redirect to cgi without host --- roles/awstats/templates/awstats-nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/awstats/templates/awstats-nginx.conf b/roles/awstats/templates/awstats-nginx.conf index 1f337c297..c67c4c0fd 100644 --- a/roles/awstats/templates/awstats-nginx.conf +++ b/roles/awstats/templates/awstats-nginx.conf @@ -1,5 +1,5 @@ location ~ ^/awstats { - rewrite ^ http://box.lan/cgi-bin/awstats.pl?config=schoolserver; + rewrite ^ /cgi-bin/awstats.pl; } location ^~ /awstatsicons { alias /usr/share/awstats/icon/;