added parameter 'doc-root' to allow to specify a different document-root directory