ref: 91805c65b6cc0db891b87d64eea1f240dae7021b
dir: /handlers/static-or-index/
#!/bin/rc
full_path=`{echo $"fs_root^$"location | urlencode -d}
full_path=$"full_path
if(~ $"location */)
exec dir-index
if(test -d $full_path){
location=$location^'/'
exec dir-index
}
exec serve-static