Changes between Initial Version and Version 1 of DODS_UserSetup

Jan 28, 2009, 10:36:26 AM (15 years ago)



  • DODS_UserSetup

    v1 v1  
     1= How to setup a user/web account for use with DODS enabled MapServer =
     3When applications linked against the DODS support library (DAP) they attempt to read a configuration file from ~/.dodsrc. To optimize performance of a MapServer based DODS application it is necessary for this file to be appropriate configured. A simple sample .dodsrc might look like this:
     5# DODS client configuation file. See the DODS
     6# users guide for information.
     14# Request servers compress responses if possible?
     15# 1 (yes) or 0 (false).
     17# Proxy configuration:
     18# PROXY_SERVER=<protocol>,<host[:port]>
     19# PROXY_SERVER=,
     20# PROXY_FOR=<regex>,<host[:port]>
     21# PROXY_FOR=,
     22# NO_PROXY_FOR=<protocol>,<host|domain>
     23# NO_PROXY_FOR=,
     26Some key items to ensure are that USE_CACHE is set to 1, and that MAX_CACHE_SIZE is set reasonably large (it is measured in megabytes). Also that MAX_CACHED_OBJ is set reasonably high, 25 should be fine. These items are used to enable caching of http responses from DODS servers. Depending on configuration, the remote DODS server may still be asked to re-validate previous queries, but frequent re-transfer of the same data responses can be avoided.
     28It may also be helpful to set DEFLATE=1 so that remote servers can return results in compressed form, especially if the remote servers are non-local.
     30In order to ensure that mapserv also gets the same environment used during development, the CONFIG option in the mapfile can be used to instruct OGR what .dodsrc to use:
     32  CONFIG DODS_CONFIG "/home/warmerda/.dodsrc"
     34Special issues with the web user are that the cache needs to be readable and writeable by MapServer. For instance, if httpd runs at "nobody", the home directory might be set to something unusual like / (see the /etc/passwd file). In this case a copy of the .dodsrc would need to be in /, and the .dods_cache would need to be somewhere that nobody can write. Perhaps below the directory already being used for temp web files for MapServer. The dods cache location can be controlled with the CACHE_ROOT variable in the .dodsrc.
     36Further information on the .dodsrc can be found in the [DODS/OPeNDAP Users Guide], particularly [Section A3].