Debian Codegraph @

contrib/epel-patches/nagios-0004-Fix-path-to-CGI-executables.patch

raw
1 From 3bdd7e40e1c7e7484edcb53b01ef3cd446305466 Mon Sep 17 00:00:00 2001
2 From: Peter Lemenkov <[email protected]>
3 Date: Mon, 15 Nov 2010 15:07:49 +0300
4 Subject: [PATCH 08/12] Fix path to CGI executables
5
6 See rhbz #653291 for additional details:
7
8 https://bugzilla.redhat.com/653291
9
10 Signed-off-by: Peter Lemenkov <[email protected]>
11
12
13 Modified for 4.0.8 - Scott Wilkerson <[email protected]>
14
15 ---
16 sample-config/httpd.conf.in | 4 ++--
17 subst.in | 1 +
18 2 files changed, 3 insertions(+), 2 deletions(-)
19
20 diff --git a/sample-config/httpd.conf.in b/sample-config/httpd.conf.in
21 index 71d4fbb..1b1e693 100644
22 --- a/sample-config/httpd.conf.in
23 +++ b/sample-config/httpd.conf.in
24 @@ -5,9 +5,9 @@
25 # configuration file. Customize the paths, etc. as
26 # needed to fit your system.
27
28 -ScriptAlias @cgiurl@ "@sbindir@"
29 +ScriptAlias @cgiurl@ "@cgidir@"
30
31 -<Directory "@sbindir@">
32 +<Directory "@cgidir@">
33 # SSLRequireSSL
34 Options ExecCGI
35 AllowOverride None
36 diff --git a/subst.in b/subst.in
37 index a8e2c06..bbffb3a 100755
38 --- a/subst.in
39 +++ b/subst.in
40 @@ -35,6 +35,7 @@ while ($f = shift @ARGV) {
41 s|\@datarootdir\@|@datarootdir@|g;
42 s|\@sbindir\@|@sbindir@|g;
43 s|\@bindir\@|@bindir@|g;
44 + s|\@cgidir\@|@libdir@/cgi-bin/|g;
45 s|\@htmurl\@|@htmurl@|g;
46 s|\@cgiurl\@|@cgiurl@|g;
47 s|\@MAIL_PROG\@|@MAIL_PROG@|g;
48 --
49 1.8.3.1
50