2002/12/08
Pegasus has two method for controlling request using pathname.
rewrite
, passwd
, allow
P1 P2 result /abc / OK /abc /defg NG /abc /abc/ OK /abc/ /abc OK /abc /abc/de NG /abc/de /abcwhere
OK
means "P1 matches P2".
handler
handler
is similar to that of the rule used in shell. We can use "*
","?
" and "[ ]
", the meaning is same as that of shell. Usage of "/
" is modified, the symbol is merely a character except an additional rule: "/*/
" matches "/
"/netlib/*/index.htmldenotes in shell style expression
/netlib/index.html /netlib/*/index.html /netlib/*/*/index.html /netlib/*/*/*/index.html ...