MapServerTiles

From OSGeo
Revision as of 02:09, 27 November 2010 by Neteler (talk | contribs) (+cat)
Jump to navigation Jump to 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>