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:
parent
81faca041a
commit
3f9a46b1f7
|
@ -105,6 +105,7 @@ void Config::AssignValues()
|
||||||
data.log_stdout = false;
|
data.log_stdout = false;
|
||||||
|
|
||||||
data.post_file_max = Int("post_file_max");
|
data.post_file_max = Int("post_file_max");
|
||||||
|
data.static_auth_dir = Text("static_auth_dir");
|
||||||
|
|
||||||
data.templates = Text("templates");
|
data.templates = Text("templates");
|
||||||
data.default_index = Text("default_index");
|
data.default_index = Text("default_index");
|
||||||
|
|
|
@ -113,6 +113,8 @@ public:
|
||||||
// 0 - not used
|
// 0 - not used
|
||||||
int post_file_max;
|
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
|
// below variables are based on the other config variables
|
||||||
|
|
||||||
|
|
|
@ -841,7 +841,7 @@ return false;
|
||||||
bool Request::MakeDirsOnFS(std::string & path)
|
bool Request::MakeDirsOnFS(std::string & path)
|
||||||
{
|
{
|
||||||
size_t i;
|
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
|
// skipping the first - the first is root
|
||||||
for(i=1 ; i<dir_table.size() ; ++i)
|
for(i=1 ; i<dir_table.size() ; ++i)
|
||||||
|
|
Loading…
Reference in New Issue