MapServerTiles

From OSGeo
Jump to: navigation, search

httpd config for mapserver tile hosting

two dns aliases point to buildtest.osgeo.org

  • mapserver-tile-1.osgeo.org
  • mapserver-tile-2.osgeo.org

Note that as this is the only virtualhost defined for this server, it has become the default configuration (i.e. for the time being buildtest.osgeo.org also serves files from /osgeo/mapserver

the static files are located at

/osgeo/mapserver

a httpd config file creating the virtualhosts is in /etc/httpd/conf.d/mapservertiles.conf

<Virtualhost *:80>
	ServerName mapserver-tile-1.osgeo.org
	ServerAlias mapserver-tile-2.osgeo.org
	DocumentRoot /osgeo/mapserver
	<Directory />
		Options FollowSymLinks
		AllowOverride None
	</Directory>
	<Directory /osgeo/mapserver/>
		AllowOverride None
		Order allow,deny
		allow from all
	</Directory>
	<Directory /osgeo/mapserver/tilecache>
                ExpiresActive on
                ExpiresDefault "access plus 1 day"
        </Directory>
	DirectoryIndex     index.html
</VirtualHost>