rc-httpd

To configure werc for rc-httpd, edit the file /path/to/rc-httpd/select-handler:

#!/path/to/rc

cd /path/to/rc-httpd

if(~ $SERVER_NAME domain.com) {
    if(~ $location /_images/* /favicon.ico) {
        PATH_INFO = $location
        FS_ROOT = /usr/username/public_html/werc/sites/domain.com
        static-or-index
    }
    if not {
        PATH_INFO = $location
        FS_ROOT = /usr/username/public_html/werc/sites/domain.com
        static-or-cgi /usr/username/public_html/werc/bin/werc.rc
    }
}
if not error 503

Directories and filenames that begin with an _ do not appear in werc's default sidebar menu.


To post a comment you need to login first.