Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Encountering a Geoserver - Openlayer WFS layer not visible I found this interesting answer . Solution about html page on the server surprised me very much as I tried previously to load an html page from the jetty geoserver without any success, encountering always a "HTTP ERROR: 404 NOT_FOUND RequestURI=/web/ws3.html" Of course, I tried several other places on my http://localhost:8080/geoserver.

Can someone confirm that its possible to load any html page from geoserver, and if a special configuration is required to reach this status ?

Thanks very much,

Olivier

share|improve this question
add comment

1 Answer 1

up vote 6 down vote accepted

You can serve html files in GeoServer by placing them in the www subdirectory in your GeoServer's data directory.

data_directory/
   global.xml
   logging.xml
   wms.xml
   wfs.xml
   wcs.xml
   data/
   demo/
   geosearch/
   gwc/
   layergroups/
   palettes/
   plugIns/
   security/
   styles/
   templates/
   user_projections/
   workspaces
   www/

You can then access access those files (ws3.html in this example) by going to http://localhost:8080/geoserver/www/ws3.html

share|improve this answer
    
Thank you so much ;-) I was getting nuts, I tried under webapps without success. –  Olivier Mar 10 '12 at 6:55
    
So it's working now then? :) –  R.K. Mar 11 '12 at 3:49
    
Yes ! You helped me save quite a long time, I was on the way to give up ! –  Olivier Mar 11 '12 at 6:27
2  
Good to know :-) You might want to mark my answer as the accepted answer ;-) –  R.K. Mar 12 '12 at 3:49
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.