Function setDocumentRoot

Synopsis

#include <lib/inc/drogon/HttpAppFramework.h>

virtual HttpAppFramework & setDocumentRoot(const std::string &rootPath)=0

Description

Set the root path of HTTP document, defaut path is ./.

Note
This operation can be performed by an option in the configuration file.

Source

Line 684 in lib/inc/drogon/HttpAppFramework.h.






Add Discussion as Guest

Log in to DocsForge