From d743a7f8d160d6e2eeefc559e9e5a783199f9859 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 18 Mar 2016 13:22:27 +0000 Subject: Make the SCRIPT_NAME logic simpler, safer, and make it actually work; in part based on ideas by bentley@. While here, improve the documentation. --- cgi.h.example | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cgi.h.example') diff --git a/cgi.h.example b/cgi.h.example index c4878d34..7e5f3917 100644 --- a/cgi.h.example +++ b/cgi.h.example @@ -1,7 +1,8 @@ /* Example compile-time configuration file for man.cgi(8). */ #define HTTP_HOST "mdocml.bsd.lv" -#define MAN_DIR "/var/www/man" +#define SCRIPT_NAME "cgi-bin/man.cgi" +#define MAN_DIR "/man" #define CSS_DIR "" #define CUSTOMIZE_TITLE "Manual pages with mandoc" #define COMPAT_OLDURI Yes -- cgit v1.2.3-56-ge451