Virtual directories
WhizBase
includes support for virtual directories since version 6.1. There are some
important notes regarding virtual directories in WB:
- virtual directory must have the same name as physical directory
Physical path: |
Virtual path: |
c:\inetpub\vhosts\admin |
/admin/ |
- physical path must be added to AllowedPaths
Physical path:
c:\inetpub\vhosts\admin
AllowedPaths=c:\inetpub\vhosts\admin
- all WhizBase files (wbsp, sr, inc and ic) contained in virtual directory
must use function $WBVDHR to refer to wwwroot directory of the site
Inside wwwroot directory:
WB_BaseName=/database/biblio.mdb
Inside virtual directory:
WB_BaseName=$wbvdhr{}/database/biblio.mdb
- to be able to use $WBVDHR function, server
side variable VirtualDirHomeRef must be set
in wbsp.ssc
file.