[mapserver-users] CGI returning a 502 error

Fawcett, David (MPCA) David.Fawcett at state.mn.us
Tue Sep 21 09:44:57 EDT 2010


According to the docs, starting with MapServer 5.0, there is no limit to the number of layers in a mapfile.  http://mapserver.org/introduction.html#layer-object

I am guessing that you are running into a different issue.  

Have you captured the post request string and examined it to make sure that it is valid?  

Are you running into a string length limit for your post request?  The URL for your post request would be limited to ~2k char for IE, but this only includes the URL to the server, not the key:value pairs.  There could be a size limit for post requests set on your Web server to help prevent DOS attacks.  I don't know where this would be set in IIS.

David.

-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of stoli
Sent: Monday, September 20, 2010 6:18 PM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] CGI returning a 502 error


I'm using the ms4w binaries (5.6.3) under IIS 7.

My application sends (via http POST) a lot of parameters to modify the .map
file. Mostly to add features to layers that are turned off by default and
then make them visible. When my parameters cause the map to show over 50
layers, the IIS returns a 502 error. 

I realize that the max layers are set to 100 in the default map.h file, but
like I said, I am using the compiled binaries from ms4w. Does anyone know if
they change that to 50 when they compile, or should I look elsewhere to find
my problem? 


-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/CGI-returning-a-502-error-tp5552675p5552675.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users




More information about the mapserver-users mailing list