[Info-vax] WASD Configuration Issue - Cannot access WEB directory

Mark Daniel mark.daniel at wasd.vsm.com.au
Thu Oct 29 15:55:00 EDT 2009


Hello,

the previous couple of comments regarding the definition of logical 
names used by WASD for file-system access are correct; they need to be 
concealed, rooted logical names

   http://h71000.www7.hp.com/wizard/wiz_2319.html

i.e. you need to be able to

   $ DIRECTORY THE_LOGICAL_NAME:[000000]

and list the files and also to access any subdirectories using the name 
because that's exactly what WASD expects to be able to do.

   http://wasd.vsm.com.au/ht_root/doc/htd/htd_1400.html#03848723

The other thing, and thanks for getting into WATCH

   http://wasd.vsm.com.au/ht_root/doc/htd/htd_2000.html

it is an invaluable tool, is the rule used is not MAP ...

urbancamo wrote:
> I got the WATCH utility running, if the output is any help:
> 
> 
> 28-OCT-2009 22:40:37  WATCH REPORT  orac.appsoftint.co.uk:80
> ------------------------------------------------------------
> HTTPd-WASD/9.3.0 OpenVMS/VAX (27-OCT-2009 21:53:18.67)
> Compaq TCPIP$IPC_SHR V5.1-15 (11-JAN-2001 04:32:37.53)
> $ CC (V7.3    /60490005) /DECC /STAND=RELAXED_ANSI /PREFIX=ALL /
> OPTIMIZE /NODEBUG /NOWARNING /FLOAT=D_FLOAT /DEFINE=
> (WASD_VMS_V6,WATCH_CAT=1,WATCH_MOD=0,WASD_ACME=0)
> VAXstation 4000-90 with 1 CPU and 80MB running VMS V7.3 (ODS-5
> unavailable, no NAML, VMS FIB, ZLIB disabled, REGEX disabled, lksb
> $b_valblk[16])
> $ HTTPD /PRIORITY=4
> AST:1996/2000 BIO:1999/2000 BYT:4995968/4999424 DIO:1000/1000 ENQ:
> 480/500 FIL:295/300 PGFL:469838/500000 PRC:0/100 TQ:97/100
> DCL Scripting: detached, as !HTTP$NOBODY, PERSONA disabled
> Process: HTTPd:80 OTHER HT_ROOT:[STARTUP]STARTUP_SERVER.COM;1 HT_ROOT:
> [LOG_SERVER]ORAC_20091028224013.LOG;1
> Instances: ORAC::HTTPd:80
> Watching: connect, request, response, mapping, error (659)
> Filter: NONE
> |Time_______|Module__|Line|Item|Category__|Event...|
> |22:40:43.20 NET      1836 0001 CONNECT    ACCEPTED
> 192.168.1.130,58708 on http://192.168.1.250,80 BG482:|
> |22:40:43.20 SERVICE  1568 0001 CONNECT    UNKNOWN service|
> |22:40:43.20 REQUEST  4109 0001 REQUEST    GET /|
> |22:40:43.20 MAPURL   1075 0001 MAPPING    PATH /|
> 001 /  ..  SET       /ht_root/doc/*    map=ELLIPSIS
> 002 /  ..  SET       /ht_root/src/*    NOcache map=ELLIPSIS
> 003 /  ..  PASS      /ht_root/*  /ht_root/*  dir=access dir=wildcard
> 004 /  ..  MAP       /httpd-internal-icons/*  /httpd/-/*
> 005 /  ..  PASS      /*/-/*  /ht_root/runtime/*/*  cache=permanent
> 006 /  ..  PASS      /ht_root/runtime/*  /ht_root/runtime/*
> 007 /  ..  PASS      /httpd/-/admin/*
> 008 /  ..  SET       /ht_root/local/*    auth=ALL
> 009 /  ..  SET       /local/*    auth=ALL
> 010 /  ..  PASS      /web/*  /web/*
> 011 /  ..  EXEC      /cgi-bin/*  /cgi-bin/*
> 012 /  ..  EXEC+     /cgiplus-bin/*  /cgi-bin/*
> 013 /  ..  EXEC+     /cgiauth-bin/*  /cgi-bin/*
> 014 /  ..  EXEC+     /isapi/*  /cgi-bin/*
> 015 /  ..  SCRIPT+   /conan*  /cgi-bin/conan*
> 016 /  ..  SCRIPT+   /help*  /cgi-bin/conan*
> 017 /  ..  SCRIPT+   /HyperReader*  /cgi-bin/HyperReader*
> 018 /  ..  SCRIPT+   /HyperShelf*  /cgi-bin/HyperShelf*
> 019 if (path-info:/query/ht_root/doc/*) script /query/* /cgi-bin/query/
> *
> FALSE path-info:/query/ht_root/doc/* '/'
> FALSE
> 020 if (path-info:/extract/ht_root/doc/*) script /extract/* /cgi-bin/
> extract/*
> FALSE path-info:/extract/ht_root/doc/* '/'
> FALSE
> 021 /  ..  EXEC      /rtbin/*  (cgi-bin:[000000]rte_example.exe)/
> ht_root/src/httpd/*
> 022 /  ..  EXEC      /decnet/*  /0::/cgi-bin/*
> 023 /  ..  REDIRECT  /*.*.htmlx  /*.htmlx?httpd=ssi&__part=*
> 024 /  ..  EXEC      /osu/*  /0::"0=wwwexec"/cgi-bin/*
> 025 /  ..  EXEC      /htbin/*  /0::"0=wwwexec"/cgi-bin/*
> 026 /  ..  MAP       /demo/*  /www_root/serverdoc/*
> 027 /  ..  PASS      /help*
> 028 /  ..  PASS      /*[*]*
> 029 /  ..  PASS      /www_root/*
> 030 /  ..  PASS      /sys$common/syshlp/*  /sys$common/syshlp/*
> dir=access dir=wildcard
> 031 /  ..  PASS      /sys$common/syslib/*  /sys$common/syslib/*
> dir=access dir=wildcard
> 032 /  ..  PASS      /sys$common/syshlp/*  /sys$common/ssl/*
> dir=access dir=wildcard
> 033 /  ..  PASS      /decw$book/*  /decw$book/*
> 034 /  ..  PASS      /sys$common/decw$book/*  /sys$common/decw$book/*
> 035 /  ..  PASS      /sys$common/decw$defaults/user/*  /sys$common/decw
> $defaults/user/*
> 036 /  ..  PASS      /disk$vaxdoc*  /disk$vaxdoc*
> 037 /  ..  PASS      /disk$axpdoc*  /disk$axpdoc*
> 038 /  ..  PASS      /$web_root/*

This should work if your URI begins /$web_root/

> 039 /  Y-  MAP       /*  /$web_root/*

You need a PASS rule for this 'catch-all' mapping here.

A MAP rule changes the string from its original to the new string and 
then continues on with the mapping.  A PASS rule says 'this is the VMS 
file-system equivalent' (or in this case that is what the rule is 
saying) use this now.  So the string /$web_root/* is translated into 
$WEB_ROOT:[000000] for use by the file-system accessing modules of WASD.

> |22:40:43.31 MAPURL   1100 0001 MAPPING    RESULT|
> Error: Access denied, by default.

And of course if it falls of the bottom of the rule list (runs out of 
rules before a matching PASS is encountered) it defaults to no access.

> |22:40:43.31 ERROR    1102 0001 RESPONSE   REQUEST:4392 (basic-only)
> 403(403) "Access denied, by default."|
> |22:40:43.31 REQUEST  0841 0001 REQUEST    STATUS 403 rx:376 tx:863
> bytes 0.110 seconds|
> |22:40:43.32 REQUEST  1211 0001 CONNECT    PERSISTENT 1
> 192.168.1.130,58708|

Again - thanks for getting WATCH into the troubleshooting!!



More information about the Info-vax mailing list