diff --git a/bin/werc.rc b/bin/werc.rc index a09aa5e..f594794 100755 --- a/bin/werc.rc +++ b/bin/werc.rc @@ -190,14 +190,14 @@ fn select_handler { if not if(test -f $body.txt) set_handler txt_handler $body.txt - # Dir listing - if not if(~ $body */index) - set_handler dir_listing_handler $body - # Apps if not if(! ~ $#enabled_apps 0 && select_apps) set_handler app_handler + # Dir listing + if not if(~ $body */index) + set_handler dir_listing_handler $body + # File not found if not { set_handler 404_handler $body