Skip to content

Commit

Permalink
Added new apache data config for docker
Browse files Browse the repository at this point in the history
  • Loading branch information
rsargent committed Oct 2, 2019
1 parent 0e19c6b commit a37548e
Showing 1 changed file with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Example apache configuration, for EarthTime tile data serving
#
# To install,
#
# 1. Copy file and customize paths
#
# 2. Symlink into /etc/apache2/sites-enabled
#
# 3. Restart apache:
#
# sudo apachectl graceful
#

Define ROOTPATH ${ROOTDIR}

<VirtualHost *:80>
ServerName ${TILES_SERVERNAME}
DocumentRoot ${ROOTPATH}/app/data
Options FollowSymLinks

Header always set Access-Control-Allow-Origin "*"

<Directory "${ROOTPATH}/app/data">
AddOutputFilterByType DEFLATE application/octet-stream
AddOutputFilterByType DEFLATE application/json
AddOutputFilterByType DEFLATE text/csv

AllowOverride None
Require all granted
</Directory>
</VirtualHost>

0 comments on commit a37548e

Please sign in to comment.