From 707cc2a0d34a50dec6bb062fc9851d1cb676cf80 Mon Sep 17 00:00:00 2001 From: Joe Roberts Date: Fri, 5 May 2017 17:57:03 -0700 Subject: [PATCH] ONEARTH-396 Updated Apache configurations for reprojected web mercator --- deploy/onearth/onearth.spec | 3 ++- src/demo/onearth-demo.conf | 4 ++++ src/layer_config/conf/environment_webmercator.xml | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/deploy/onearth/onearth.spec b/deploy/onearth/onearth.spec index 35aa3526..9c86ec20 100644 --- a/deploy/onearth/onearth.spec +++ b/deploy/onearth/onearth.spec @@ -1,6 +1,6 @@ Name: onearth Version: 1.3.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Installation packages for OnEarth License: ASL 2.0+ @@ -286,6 +286,7 @@ make WEB_HOST=localhost/onearth/demo-twms mv %{_datadir}/onearth/apache/kml/kmlgen.cgi \ %{_datadir}/onearth/demo/twms-geo mkdir %{_datadir}/onearth/demo/wms/epsg4326 +mkdir %{_datadir}/onearth/demo/data/EPSG3857 ln -s %{_datadir}/onearth/apache/wms.cgi %{_datadir}/onearth/demo/wms/epsg4326 ln -s %{_datadir}/onearth/demo/ol/* %{_datadir}/onearth/demo/wms/ ln -s %{_datadir}/onearth/demo/ol/* %{_datadir}/onearth/demo/wmts-geo/ diff --git a/src/demo/onearth-demo.conf b/src/demo/onearth-demo.conf index ed363b3a..79b68df8 100644 --- a/src/demo/onearth-demo.conf +++ b/src/demo/onearth-demo.conf @@ -19,6 +19,10 @@ SSLProxyEngine on ProxyPass /outside https://gibs.earthdata.nasa.gov/ ProxyPassReverse /outside https://gibs.earthdata.nasa.gov/ +# Optional reproject configs +# Include /usr/share/onearth/demo/data/EPSG3857/onearth-reproject-twms.conf +# Include /usr/share/onearth/demo/data/EPSG3857/onearth-reproject-wmts.conf + ScriptAlias /onearth/wms/epsg4326 /usr/share/onearth/demo/wms/epsg4326 Alias /onearth/wmts/epsg4326 /usr/share/onearth/demo/wmts-geo Alias /onearth/twms/epsg4326 /usr/share/onearth/demo/twms-geo diff --git a/src/layer_config/conf/environment_webmercator.xml b/src/layer_config/conf/environment_webmercator.xml index 7dda15f8..058dd088 100644 --- a/src/layer_config/conf/environment_webmercator.xml +++ b/src/layer_config/conf/environment_webmercator.xml @@ -33,8 +33,8 @@ limitations under the License. /etc/onearth/config/mapserver/ /onearth/wmts/epsg3857 /onearth/twms/epsg3857 - /etc/httpd/conf.d/ - /etc/httpd/conf.d/ + /usr/share/onearth/demo/data/EPSG3857/ + /usr/share/onearth/demo/data/EPSG3857/ /etc/onearth/config/reproject/ /etc/onearth/config/reproject/