Possible Proxy Server problem
Bart van den Eijnden
bartvde at XS4ALL.NL
Fri May 6 13:19:03 PDT 2005
Hi John,
try specifying http_proxy as an environment variable. If you are using
Apache use SetEnv in httpd.conf.
See for more information:
http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=571
Best regards,
Bart
On Fri, 06 May 2005 22:18:36 +0200, John Bonk <bonk at EOSDATA.GSFC.NASA.GOV>
wrote:
> We have been having trouble getting our mapserver to retrieve data from
> remote machines. I suspect the problem may be connecting through our
> proxy
> server.
>
> We have specified our proxy server in a .dodsrc file, and we have been
> able
> to retreive data from a dods server. But we still can't retrieve files
> from wms servers.
>
> Is there something special that has to be done to tell mapserv to go
> through a proxy when retrieving data from a wms server?
>
> The map file is below. It works on another machine that does not have a
> proxy server.
>
> Any help will be appreciated,
> John
>
> MAP
> IMAGETYPE PNG
> EXTENT -117.263 30.168 -83.774 51.676
> units DD
>
> DEBUG ON
> SIZE 400 300
> SHAPEPATH "data"
>
> PROJECTION
> "init=epsg:4326"
> END
>
> CONFIG PROJ_LIB /usr/local/share/proj/
>
>
>
> WEB
> IMAGEPATH '/local/tools/gdaac/TS2/www/workshop/tmp/'
> IMAGEURL '/TS2/workshop/tmp/'
> LOG '/local/tools/gdaac/TS2/www/workshop/debug.log'
> METADATA
> "wms_title" "WMS Test Demo"
> "wms_onlineresource"
> "http://g0dup05u.ecs.nasa.gov/TS2/cgi-bin/mapserv?"
> "wms_abstract" "Test for mapserver"
> "ows_schemas_location" "http://ogc.dmsolutions.ca"
> END
> END
>
>
>
> #
> # Start of scalebar
> #
> SCALEBAR
> IMAGECOLOR 255 50 5
> LABEL
> COLOR 55 55 55
> SIZE tiny
> END
> STYLE 1
> SIZE 100 2
> COLOR 0 0 0
> UNITS MILES
> INTERVALS 2
> TRANSPARENT TRUE
> STATUS EMBED
> END
>
>
> LAYER
> NAME RTOPO
> TYPE RASTER
> units DD
> OFFSITE 0 0 0
> DEBUG ON
> STATUS DEFAULT
> PROJECTION
> "init=epsg:4326"
> END
> CONNECTIONTYPE WMS
> CONNECTION "http://globe.digitalearth.gov/viz-bin/wmt.cgi?"
> METADATA
> "wms_request" "GetMap"
> "wms_name" "RTOPO"
> "wms_server_version" "1.1.1"
> "wms_srs" "EPSG:4326"
> "wms_format" "image/png"
> END
> END
>
>
> LAYER # MODIS raster layer begins here
> METADATA
> "wms_title" "test layer"
> END
> DEBUG ON
> NAME modis
> DATA RGB_mosaic_250m.tif
> EXTENT -13053641.300000 3358256.867 -9325729.471 5752577.812
> PROJECTION
> "proj=eqc"
> "lat_ts=0.0"
> "x_0=0.0"
> "y_0=0.0"
> END
> STATUS ON
> TYPE RASTER
> END # MODIS raster layer ends here
>
> LAYER # States line layer begins here
> METADATA
> "wms_title" "test states layer"
> END
> DEBUG ON
> NAME states
> TYPE POLYGON
> STATUS ON
> DATA "statesp020"
> PROJECTION
> "proj=latlong"
> "ellps=GRS80"
> "datum=NAD83"
> END
> CLASS
> NAME "states"
> OUTLINECOLOR 60 60 60
> SYMBOL 0
> END
> END # States line layer ends here
>
> END # end of map file.
> =======================================
> John Bonk
> SSAI/NASA GES DISC
> Phone:(301) 614-5280
> Fax: (301) 614-5268
> For more information about
> the NASA GES DISC and its services:
> http://daac.gsfc.nasa.gov/
>
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
More information about the MapServer-users
mailing list