[apcupsd] - do not attempt to invoke directory as a script (#659219)

Michal Hlavinka mhlavink at fedoraproject.org
Thu Dec 2 12:35:21 UTC 2010


commit 2228e706df6b66258edd6e2e059854ab04d6a1dc
Author: Michal Hlavinka <mhlavink at redhat.com>
Date:   Thu Dec 2 13:35:28 2010 +0100

    - do not attempt to invoke directory as a script (#659219)

 apcupsd-httpd.conf |    6 +++++-
 apcupsd.spec       |    7 +++++--
 2 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/apcupsd-httpd.conf b/apcupsd-httpd.conf
index 9e5ff87..973dec9 100644
--- a/apcupsd-httpd.conf
+++ b/apcupsd-httpd.conf
@@ -3,7 +3,11 @@
 #
 
 # files are off the documentroot of Web server
-ScriptAlias /apcupsd/ "/var/www/apcupsd/"
+Alias /apcupsd /var/www/apcupsd
+<Directory /var/www/apcupsd>
+ AddHandler cgi-script cgi pl
+ Options ExecCGI
+</Directory>
 
 #
 # Allow only local access at default
diff --git a/apcupsd.spec b/apcupsd.spec
index eaebea0..fb630f4 100644
--- a/apcupsd.spec
+++ b/apcupsd.spec
@@ -1,6 +1,6 @@
 Name:         apcupsd
 Version:      3.14.8
-Release:      4%{?dist}
+Release:      5%{?dist}
 Summary:      APC UPS Power Control Daemon for Linux
 
 Group:        System Environment/Daemons
@@ -177,7 +177,10 @@ fi
 
 
 %changelog
-* Fri Nov 05 2020 Michal Hlavinka <mhlavink at redhat.com> - 3.14.8-4
+* Thu Dec 02 2010 Michal Hlavinka <mhlavink at redhat.com> - 3.14.8-5
+- do not attempt to invoke directory as a script (#659219)
+
+* Fri Nov 05 2010 Michal Hlavinka <mhlavink at redhat.com> - 3.14.8-4
 - rebuilt for library update
 
 * Wed Sep 29 2010 jkeating - 3.14.8-3


More information about the scm-commits mailing list