Changes between Version 13 and Version 14 of RenderingOsmDataUbuntu
- Timestamp:
- Aug 11, 2011, 1:35:09 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RenderingOsmDataUbuntu
v13 v14 227 227 </tileset> 228 228 }}} 229 * Create 'cache' directory writable by Apache (www-data) user 230 {{{ 231 mkdir ~/osm-demo/geocache/cache 232 sudo chown www-data ~/osm-demo/geocache/cache/ 233 }}} 234 * Add directives to Apache config: 235 {{{ 236 sudo vi /etc/apache2/sites-available/default 237 ... add the following lines to the end of the default VirtualHost (update the '/path/to/' directory name): 238 239 <IfModule geocache_module> 240 GeoCacheAlias /geocache "/path/to/osm-demo/geocache/geocache-osm.xml" 241 </IfModule> 242 243 }}} 229 244 * And restart apache for the changes to take effect: 230 245 {{{ … … 235 250 * TMS service available at http://yourserver.tld/geocache/tms/1.0.0/ 236 251 * Sample tile: http://yourserver.tld/geocache/tms/1.0.0/osm@g/3/2/5.png 237 * Sample OpenLayers app to test TMS: http://openlayers.org/dev/examples/tms.html 252 * Test using the sample OpenLayers app to test TMS: http://openlayers.org/dev/examples/tms.html 253 * URL of TMS (Should end in /): http://yourserver.tld/geocache/tms/ 254 * layer_name: osm@g 255 * Format: PNG 256 * ... and hit submit. You should see a browsable map of the world. If not then check your Apache error logs for errors. 238 257 239 258 * You can optionally run the cache seeder, see: http://code.google.com/p/mod-geocache/wiki/UsingTheSeeder