[mapserver-users] Error: End of script output before headers

Stefanos Anastasiou emperor_stef at yahoo.gr
Fri Apr 8 14:27:40 PDT 2016


Hi all,
I'm running mapserver locally in query mode with only two layers, a TYPE line layer and a polygon, both are simple shapefiles. When first loading my map with:
http://127.0.0.1/cgi-bin/mapserv?map=/home/stefanos/mapdata/mymap.map

and querying the line layer I get results just fine. But when trying to query the polygon layer, on the same zoomsize, I get the following error:
Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator at webmaster at localhost to inform them of the time this error occurred, and the actions you performed just before this error.More information about this error may be available in the server error log. 
However, if zoom in close enough, and query the polygon layer I get the proper results. So it seems to me that it has to do something with the zoomdir parameter ??
The apache error log says:  End of script output before headers: mapserv, referer: http://127.0.0.1/cgi-bin/mapserv?map=/home/stefanos/mapdata/mymap.map
The same thing happens with nquery mode, but it affects the line layer too in full extent. 
This is my map file:
################## LINE LAYER #########  LAYER       NAME "Urban"      DATA "outskirts"       TYPE polygon      STATUS default      LABELITEM "Name"      LABELCACHE on      TOLERANCE 200      TOLERANCEUNITS meters       PROJECTION           "init=epsg:2100"       END      HEADER "/var/www/html/final/urban_header.html"      FOOTER "/var/www/html/final/urban_footer.html"      CLASS                 TEMPLATE "/var/www/html/final/urban_query.html"          STYLE               COLOR 210 180 140               OUTLINECOLOR 255 255 255          END          LABEL                 COLOR 0 0 0                 POSITION cc                ANGLE auto          END      END  END #layer############################# LINE LAYER ###############  LAYER      NAME "Roads"      TYPE line      STATUS default      DATA "Rnetwork"      LABELITEM "Street"      LABELCACHE on      TOLERANCE 200      TOLERANCEUNITS meters       PROJECTION           "init=epsg:2100"       END      HEADER "/var/www/html/final/road_header.html"      FOOTER "/var/www/html/final/road_footer.html"      CLASS         TEMPLATE "/var/www/html/final/road_query.html"         STYLE             COLOR 0 0 255         END         LABEL              COLOR 0 0 0              ANGLE auto             POSITION cc         END #label      END #class  END #layer

apachectl -v is:Server version: Apache/2.4.7 (Ubuntu)

My apache cgi configuration:
    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/                <Directory "/usr/lib/cgi-bin">                        AllowOverride None                        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch                        Require all granted                </Directory>

Any idea ?   
-Stefanos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20160408/69f65ec2/attachment.html>


More information about the mapserver-users mailing list