723102a
From 3bdd7e40e1c7e7484edcb53b01ef3cd446305466 Mon Sep 17 00:00:00 2001
78de83b
From: Peter Lemenkov <lemenkov@gmail.com>
78de83b
Date: Mon, 15 Nov 2010 15:07:49 +0300
723102a
Subject: [PATCH 08/12] Fix path to CGI executables
78de83b
78de83b
See rhbz #653291 for additional details:
78de83b
78de83b
https://bugzilla.redhat.com/653291
78de83b
78de83b
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
Scott Wilkerson 68bc990
Scott Wilkerson 68bc990
Scott Wilkerson 68bc990
Modified for 4.0.8 - Scott Wilkerson <swilkerson@nagios.com>
Scott Wilkerson 68bc990
78de83b
---
723102a
 sample-config/httpd.conf.in | 4 ++--
723102a
 subst.in                    | 1 +
78de83b
 2 files changed, 3 insertions(+), 2 deletions(-)
78de83b
78de83b
diff --git a/sample-config/httpd.conf.in b/sample-config/httpd.conf.in
78de83b
index 71d4fbb..1b1e693 100644
78de83b
--- a/sample-config/httpd.conf.in
78de83b
+++ b/sample-config/httpd.conf.in
Scott Wilkerson 68bc990
@@ -5,9 +5,9 @@
78de83b
 # configuration file.  Customize the paths, etc. as
78de83b
 # needed to fit your system.
78de83b
 
78de83b
-ScriptAlias @cgiurl@ "@sbindir@"
78de83b
+ScriptAlias @cgiurl@ "@cgidir@"
78de83b
 
78de83b
-<Directory "@sbindir@">
78de83b
+<Directory "@cgidir@">
78de83b
 #  SSLRequireSSL
78de83b
    Options ExecCGI
78de83b
    AllowOverride None
78de83b
diff --git a/subst.in b/subst.in
d405c45
index a8e2c06..bbffb3a 100755
78de83b
--- a/subst.in
78de83b
+++ b/subst.in
Scott Wilkerson 68bc990
@@ -35,6 +35,7 @@ while ($f = shift @ARGV) {
Scott Wilkerson 68bc990
 		s|\@datarootdir\@|@datarootdir@|g;
78de83b
 		s|\@sbindir\@|@sbindir@|g;
78de83b
 		s|\@bindir\@|@bindir@|g;
d405c45
+		s|\@cgidir\@|@libdir@/cgi-bin/|g;
78de83b
 		s|\@htmurl\@|@htmurl@|g;
78de83b
 		s|\@cgiurl\@|@cgiurl@|g;
78de83b
 		s|\@MAIL_PROG\@|@MAIL_PROG@|g;
78de83b
-- 
723102a
1.8.3.1
78de83b