I have had similar errors in the past, and almost invariably it was a postgis query error. Follow Jukka's advice - debug 5 for both the map and the layer, and look in the log.
cheers Ben On 11/01/2010, at 1:00 , [email protected] wrote: > If I understood right "mol" is the name you have given at MAP level. I do > not know if using &layers=mol should really work or not, I have never tried > it that way. I use wms_titles advertised at layer lever, either comma > separated list or &layers=all. > > Try what happens when using &layers=all. If it fails add "DEBUG 5" into > layer definitions and have a look at ms_errorfile after doing some failing > requests. > > -Jukka- > > > -----Alkuperäinen viesti----- > Lähettäjä: Shaz N [mailto:[email protected]] > Lähetetty: su 10.1.2010 7:31 > Vastaanottaja: Rahkonen Jukka > Kopio: [email protected] > Aihe: Re: [mapserver-users] Premature end of script headers: mapserv > > Hi.. > > I added the new shapefiles to PostGIS using shp2pgsql etc and it was > successful. After that, in my mapfile, I included a new layer for each of > these shapefiles. What I copy-pasted in my mail was the layer that I added > in my mapfile. > > I have included WMS metadata in the beginning of the mapfile: > WEB > IMAGEURL "/tmp/" > IMAGEPATH /tmp/ms_tmp/ > METADATA > "wms_title" "MOL" ##required > "wms_onlineresource" "....." ##required > "wms_srs" "EPSG:2060" ##recommended > END > > I was getting a good output using WMS request: > http://....../cgi-bin/mapserv?map=/data/..../t....map&SERVICE=WMS&VERSION=1.1.1&REQUEST=getmap&layers=mol&STYLES=&SRS=epsg:2060&FORMAT=image/jpeg&WIDTH=600&HEIGHT=500&BBOX=332271.136,2800048.4565,335043.0915,2803465.287 > > As I kept adding new layers, I suddenly started getting an Internal server > error on my browser. When I checked the error log, it read: Premature end of > script headers: mapserv. > All the new layers were similar to each other, with only different "NAME" > and "DATA". But the internal server error would just not go unless I reduced > the total number of layers in my mapfile. _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
