diff --git a/core/config.cpp b/core/config.cpp index 898e744..3c87bd6 100755 --- a/core/config.cpp +++ b/core/config.cpp @@ -105,6 +105,7 @@ void Config::AssignValues() data.log_stdout = false; data.post_file_max = Int("post_file_max"); + data.static_auth_dir = Text("static_auth_dir"); data.templates = Text("templates"); data.default_index = Text("default_index"); diff --git a/core/data.h b/core/data.h index ab7db38..fde4ff1 100755 --- a/core/data.h +++ b/core/data.h @@ -113,6 +113,8 @@ public: // 0 - not used int post_file_max; + // directory for static files (for fastcgi authorizer mode) + std::string static_auth_dir; // below variables are based on the other config variables diff --git a/core/request.cpp b/core/request.cpp index afaa0a8..3e8afcf 100755 --- a/core/request.cpp +++ b/core/request.cpp @@ -841,7 +841,7 @@ return false; bool Request::MakeDirsOnFS(std::string & path) { size_t i; - path = "/home/tomek/roboczy/slimaczek.pl/static_auth"; // !! dodac do konfiga + path = data.static_auth_dir; // skipping the first - the first is root for(i=1 ; i