From OSGeo
Jump to navigation Jump to search

httpd config for mapserver tile hosting

two dns aliases point to


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

the static files are located at


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

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