[MapProxy] Using local Mapserver binary

Christian Willmes c.willmes at uni-koeln.de
Thu May 26 07:39:10 EDT 2011


Hi,

I directly tested it with the new release candidate 1.1.0rc1.
The issue regarding the local Mapserver remains, MapProxy try's to
access mapserver from the "wrong" URL -> http://localhost +
/path/to/mapserver/binary
which results in requests to invalid URLs.
e.g. http://localhost/usr/sbin/mapserv?

Is that maybe a bug, or did I misunderstood how to configure it
correctly? If I give the coorect URL path like /mapserv MapProxy will
not start:
[2011-05-26 13:37:48,113] mapproxy.config - CRITICAL - could not find
mapserver binary ('/mapserv')


Thanks and regards,
Christian

On 24.05.2011 16:13, Christian Willmes wrote:
> On 24.05.2011 15:59, Oliver Tonnhofer wrote:
>>
>> On 24.05.2011, at 15:51, Christian Willmes wrote:
>>> Thanks for the hint,
>>> using `mapproxy-util serve-develop --debug mapproxy.yaml` I can see what
>>> happens:
>>>
>>> [2011-05-24 15:36:54,566] mapproxy.source.request - INFO - CGI
>>> http://localhost/usr/sbin/mapserv?styles=&map=%2Fvar%2Flocal%2Fgeodaten%2FBathymetrie%2Ferasedreal%2FSealevel.map&format=image%2Fpng&height=1104&bbox=-20037508.3428,-1565430.33928,1565430.33928,20037508.3428&layers=-10_Meter,-20_Meter,-30_Meter,-40_Meter,-50_Meter,-60_Meter,-70_Meter,-80_Meter,-90_Meter,-100_Meter,-110_Meter,-120_Meter,-130_Meter,-140_Meter,-150_Meter&service=WMS&width=1104&request=GetMap&srs=EPSG%3A900913&version=1.1.1
>>> - 0.3 11
>>>
>>> Mapproxy seems to try to access an URL which does not exist:
>>> http://localhost/usr/sbin/mapserv
>>>
>>> Correct would be http://localhost/mapserv
>>
>>
>> No, this is not a real URL. It directly calls the mapserver as a CGI script. Your response looks too small (0.3kb). 
>>
>> What does you Mapserver return when you request the same URL, i.e.:
>>
>>> http://localhost/mapserv?styles=&map=%2Fvar%2Flocal%2Fgeodaten%2FBathymetrie%2Ferasedreal%2FSealevel.map&format=image%2Fpng&height=1104&bbox=-20037508.3428,-1565430.33928,1565430.33928,20037508.3428&layers=-10_Meter,-20_Meter,-30_Meter,-40_Meter,-50_Meter,-60_Meter,-70_Meter,-80_Meter,-90_Meter,-100_Meter,-110_Meter,-120_Meter,-130_Meter,-140_Meter,-150_Meter&service=WMS&width=1104&request=GetMap&srs=EPSG%3A900913&version=1.1.1
>>
>> Regards,
>> Oliver
>>
> 
> When I put this URL in a browser I get the correctly rendered map as
> expected.
> 
> I configured my mapserver using mod_fcgid, but this should not be a
> problem or?
> 
> regards,
> Christian
> 


-- 
Christian Willmes
AG GIS & Fernerkundung      | GIS & RS Group
Geographisches Institut     | Institute of Geography
Universität zu Köln         | University of Cologne
Tel.: +49 (0)221 470 6234
Fax.: +49 (0)221 470 2280
http://www.geographie.uni-koeln.de/gis
http://www.sfb806.de


More information about the MapProxy mailing list