Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

add back el6 spec and httpd config

Mike McGann0b02c13d21eb
diff --git a/httpd.conf b/httpd.conf
index 9942dc2e6..c816f6b42 100644
--- a/httpd.conf
+++ b/httpd.conf
@@ -1,8 +1,15 @@
-Alias /@WORLDVIEW@ /usr/share/@WORLDVIEW@/web
+Alias /labs/@WORLDVIEW@/var /var/lib/@WORLDVIEW@
+Alias /labs/@WORLDVIEW@ /usr/share/@WORLDVIEW@/web
+
+AddHandler cgi-script .cgi
<Directory /usr/share/@WORLDVIEW@/web>
- Require all granted
+ AllowOverride All
+ Order allow,deny
+ Allow from all
</Directory>
-
+<Directory /usr/share/@WORLDVIEW@/web/service>
+ Options ExecCGI
+</Directory>
diff --git a/worldview.spec b/worldview.spec
index 15c1d9303..e9f7e9230 100644
--- a/worldview.spec
+++ b/worldview.spec
@@ -1,6 +1,6 @@
Name: @WORLDVIEW@
Version: @BUILD_VERSION@
-Release: 1.@BUILD_NUMBER@%{?dist}
+Release: @BUILD_RELEASE@.@BUILD_NUMBER@%{?dist}
Summary: Browse full-resolution, near real-time satellite imagery.
License: NASA-1.3
URL: http://earthdata.nasa.gov
@@ -68,29 +68,28 @@ rm -rf %{buildroot}
%post
if [ $1 -gt 0 ] ; then
- if /bin/systemctl show httpd.service | grep ActiveState=active >/dev/null ; then
- /bin/systemctl reload httpd.service
+ if /sbin/service httpd status >/dev/null ; then
+ /sbin/service httpd reload
fi
fi
%post debug
if [ $1 -gt 0 ] ; then
- if /bin/systemctl show httpd.service | grep ActiveState=active >/dev/null ; then
- /bin/systemctl reload httpd.service
+ if /sbin/service httpd status >/dev/null ; then
+ /sbin/service httpd reload
fi
fi
%postun
-if [ $1 -gt 0 ] ; then
- if /bin/systemctl show httpd.service | grep ActiveState=active >/dev/null ; then
- /bin/systemctl reload httpd.service
+if [ $1 -eq 0 ] ; then
+ if /sbin/service httpd status >/dev/null ; then
+ /sbin/service httpd reload
fi
fi
%postun debug
-if [ $1 -gt 0 ] ; then
- if /bin/systemctl show httpd.service | grep ActiveState=active >/dev/null ; then
- /bin/systemctl reload httpd.service
+if [ $1 -eq 0 ] ; then
+ if /sbin/service httpd status >/dev/null ; then
+ /sbin/service httpd reload
fi
fi
-