From 87ef3a1635aae064bfcfac0be532b9904bdd927d Mon Sep 17 00:00:00 2001 From: Oscar Najera Date: Sun, 9 Feb 2025 18:50:27 +0100 Subject: [stats] put behind lighttpd proxy --- webstats/readme.org | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 webstats/readme.org (limited to 'webstats/readme.org') diff --git a/webstats/readme.org b/webstats/readme.org new file mode 100644 index 0000000..d3908e9 --- /dev/null +++ b/webstats/readme.org @@ -0,0 +1,20 @@ +#+title: Track website visit statistics + +* Setup lighttpd +On the config file append the proxy to the running lisp server +#+begin_src conf +server.modules += ( "mod_proxy" ) + +$HTTP["url"] =~ "^/stats/" { + proxy.server = ("" => + ( "hunchentoot" => + ( "host" => "127.0.0.1", + "port" => 4252 ) + ) + ) + proxy.header = ( + "map-urlpath" => ( "/stats" => "" ) + ) + +} +#+end_src -- cgit v1.2.3