[Info-vax] WASD demo issues
Mark Daniel
mark.daniel at wasd.vsm.com.au
Fri Jan 28 13:36:36 EST 2022
On 29/1/22 4:27 am, issinoho wrote:
> On Friday, 28 January 2022 at 12:03:55 UTC, Mark Daniel wrote:
8< snip 8<
> Hi Mark, I'm sure I'm doing something silly here...
>
> wasd_config_map.conf
> # PHP
> exec /phpmyadmin/**.php* (cgi-bin:[000000]phpwasd.exe)/phpmyadmin$root/*.php* \
> script=query=relaxed map=once ods=5
> pass /phpmyadmin/* /phpmyadmin$root/*
>
> AXPBOX::sh log/full phpmyadmin$root
> "PHPMYADMIN$ROOT" [exec] = "dka0:[www.phpmyadmin.]" [concealed] (LNM$SYSTEM_TABLE)
>
> From file path report...
> 0040 exec /phpmyadmin/**.php* (cgi-bin:[000000]phpwasd.exe)/phpmyadmin$root/*.php* map=ONCE ods=5 script=QUERY=relaxed
> 0041 pass /phpmyadmin/* /phpmyadmin$root/*
>
> From WATCHER when browsing to http://192.168.0.47/phpmyadmin...
> |Time_______|Module__|Line|Item__|Category__|Event...|
> |08:04:53.46 NET 2151 000001 CONNECT ACCEPTED 192.168.0.28,49203 on http://axpbox.home,80 (192.168.0.47) BG8793:|
> |++++++++++++++++++++++++++++++++++++++++++++
> |08:04:53.46 SERVICE 1757 000002 CONNECT UNKNOWN service|
> |08:04:53.46 REQUEST 4413 000002 REQUEST GET /phpmyadmin|
> |08:04:53.46 MAPURL 0966 000002 MAPPING PATH /phpmyadmin|
> 0001 /phpmyadmin .. SET /wasd_root/doc/* map=ELLIPSIS
> 0002 /phpmyadmin .. SET /wasd_root/src/* NOcache map=ELLIPSIS
8< snip 8<
> 0039 /phpmyadmin Y- PASS /* /wasd_root/*
> |08:04:53.46 MAPURL 0991 000002 MAPPING RESULT|
> Mapped: /wasd_root/phpmyadmin
> Translated: wasd_root:[000000]phpmyadmin (ODS-5)
> Script:
> Script-File:
> Run-Time:
> |08:04:53.46 CACHE 0603 000002 RESPONSE CACHE search path 50CC60724DE6A0F037FB9AE7824DF1BC|
8< snip 8<
> As you can see the map is still looking for this under, wasd_root:[000000]phpmyadmin
>
> What am I doing wrong?
The mapping rules are scanned from first to last and the
"map-everything-else-as" rule '/*' is being hit at 39 before rules 40
and 41 can be encountered. At the very least move your two rules in
front of the '/*' rule. As mentioned, these two are pretty-much
position independent (once in front of the map-everything-else-as rule)
and if PHP is going to be your main game you can expedite their matching
(mapping is pretty efficient anyway) by moving them further towards the
front of the rule set.
> Thanks.
Always encouraging to see another convert to Server Admin and WATCH :-]
--
Anyone, who using social-media, forms an opinion regarding anything
other than the relative cuteness of this or that puppy-dog, needs
seriously to examine their critical thinking.
More information about the Info-vax
mailing list