调整PANGU读取template的路径默认配置
This commit is contained in:
@@ -359,11 +359,11 @@ int pangu_http_init(struct tfe_proxy * proxy)
|
||||
g_pangu_rt->tpl_403 = ctemplate::Template::GetTemplate(page_path, ctemplate::DO_NOT_STRIP);
|
||||
memset(page_path, 0, sizeof(page_path));
|
||||
MESA_load_profile_string_def(profile, "TEMPLATE", "PAGE_404", page_path, sizeof(page_path),
|
||||
"./resource/pangu/template/HTTP404.html");
|
||||
"./resource/pangu/HTTP404.html");
|
||||
g_pangu_rt->tpl_404 = ctemplate::Template::GetTemplate(page_path, ctemplate::DO_NOT_STRIP);
|
||||
memset(page_path, 0, sizeof(page_path));
|
||||
MESA_load_profile_string_def(profile, "TEMPLATE", "PAGE_451", page_path, sizeof(page_path),
|
||||
"./resource/pangu/template/HTTP451.html");
|
||||
"./resource/pangu/HTTP451.html");
|
||||
g_pangu_rt->tpl_451 = ctemplate::Template::GetTemplate(page_path, ctemplate::DO_NOT_STRIP);
|
||||
|
||||
MESA_load_profile_int_def(profile, "TANGO_CACHE", "enable_cache", &(g_pangu_rt->cache_enabled), 1);
|
||||
|
||||
Reference in New Issue
Block a user