[mapserver-users] mapserver files to subdomain results in '500 Internal Server Error' when mapserv executable accessed through url

Ted Spradley tspradley at snoogems.com
Mon Sep 21 19:47:12 PDT 2009


Thanks Andy.

Yes, changed mapserv to a different name, and both 404's.
access_log:
 - - [21/Sep/2009:21:35:25 -0500] "GET /cgi-bin/mapserv HTTP/1.1" 404 1464 
"-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-     US; rv:1.9.1.3) 
Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)"
 - - [21/Sep/2009:21:35:33 -0500] "GET /cgi-bin/mapserv HTTP/1.1" 404 1464 
"-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-     US; rv:1.9.1.3) 
Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)"

I am not sending any parameters at all through the url, only checking 
functionality.

1. http://domain.com/cgi-bin/mapserv
2. http://maps.domain.com/cgi-bin/mapserv

Apache does have different virtual hosts for each, but the access_log above 
shows each request getting converted to the identical GET request.

1. 'http://domain.com/cgi-bin/mapserv' -

[21/Sep/2009:12:40:12 -0500] "GET /cgi-bin/mapserv HTTP/1.1" 200 249 "-" 
"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 
Firefox/3.5.3 (.NET CLR 3.5.30729)"

2. 'http://maps.domain.com/cgi-bin/mapserv' -
[21/Sep/2009:12:40:20 -0500] "GET /cgi-bin/mapserv HTTP/1.1" 500 1549 "-" 
"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 
Firefox/3.5.3 (.NET CLR 3.5.30729)"

One gets code 200, Two gets code 500.

All of my openlayers, mapserver, etc programs function normally on the main 
domain.

I even tried moving around the SetEnv directive to outside the 
<directory></directory> in both httpd.conf files

Thanks again for all of your thought.

Ted S.

----- Original Message ----- 
From: "Andy Colson" <andy at squeakycode.net>
To: "Ted Spradley" <tspradley at snoogems.com>
Cc: <mapserver-users at lists.osgeo.org>
Sent: Monday, September 21, 2009 9:03 PM
Subject: Re: [mapserver-users] mapserver files to subdomain results in '500 
Internal Server Error' when mapserv executable accessed through url


> Ted Spradley wrote:
>> The Apache error_log shows:
>>
>>
>> error_log shows:
>> [Mon Sep 21 12:40:20 2009] [error] [client 98.200.238.238] Premature end 
>> of
>> script headers: mapserv
>>
>> Thanks, Ted S.
>>
>>
>> Andy Colson wrote:
>>> Ted Spradley wrote:
>>>> Hi all,
>>>>
>>>> I decided it would be a good idea to move all of my mapping activity to 
>>>> a
>>>> subdomain: maps.subdomain.com
>>>>
>>>> Accessing mapserv by 'http://maps.domain.com/cgi-bin/mapserv' the 
>>>> result
>>>> is '500 Internal Server Error'.
>>>>
>>>> Accessing mapserv by 'http://domain.com/cgi-bin/mapserv' the result
>>>> is the expected 'No query information to decode. QUERY_STRING is set, 
>>>> but
>>>> empty. '.
>>>>
>>>> access_log shows the two requests converted to the same GET:
>>>>
>>>> 1. 'http://domain.com/cgi-bin/mapserv' -
>>>>
>>> What does apache error log show?
>>>
>>> -Andy
>>> _______________________________________________
>>> mapserver-users mailing list
>>> mapserver-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>
>>>
>>
>
> Yep, that means mapserv is crashing before it can send any output to 
> apache.  I've had the same error in my perl mapscript when I do something 
> dumb and the script dies in the middle.
>
> Are you sending different params to mapserv for one url vs. the other? 
> Any differences at all?  Does apache have different virtual hosts for the 
> two urls, or aliases (ie. are they hitting the same mapserv on disk)?
>
> (If you rename the mapserv to something and then try both urls do they 
> both return 404's?)
>
> -Andy 




More information about the MapServer-users mailing list