-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new apache data config for docker
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
examples/webgl-timemachine/example-configs/earthtime-data-apache-vhost-env.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |