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

Andy Colson andy at squeakycode.net
Mon Sep 21 23:18:17 EDT 2009


Ted Spradley wrote:
> 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)"
> 

shoot.

> 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

shoot.

> 
> 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)"
> 

Yeah, I noticed that, but it's obviously before mapping to the filesystem, unless the path on disk really is /cgi-bin?  I'd assumed it was more like /var/www/cgi-bin.  But still, the 404's seem to prove its going to the same place.  So, shoot.

Have you tried any other cgi's?  I'm not even sure if it would be helpful.  

How adventurous do you feel?

http://www.net-track.ch/opensource/articles/strace-cgi.php

I've never tried this, have no idea if it'll help.  But in theory, there is a chance, of it potentially, being possibly helpful.  :-)

-Andy


More information about the mapserver-users mailing list