added: static_auth_dir to config

git-svn-id: svn://ttmath.org/publicrep/cmslu/trunk@545 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
Tomasz Sowa 2010-01-06 19:36:29 +00:00
parent 81faca041a
commit 3f9a46b1f7
3 changed files with 4 additions and 1 deletions

View File

@ -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");

View File

@ -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

View File

@ -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<dir_table.size() ; ++i)