提交 12201890 authored 作者: Seven Du's avatar Seven Du

redirect /portal to /portal/index.html

上级 6c853fc7
...@@ -704,6 +704,12 @@ abyss_bool auth_hook(TSession * r) ...@@ -704,6 +704,12 @@ abyss_bool auth_hook(TSession * r)
return websocket_hook(r); return websocket_hook(r);
} }
if (!strncmp(r->requestInfo.uri, "/portal", 7) && strlen(r->requestInfo.uri) <= 8) {
ResponseAddField(r, "Location", "/portal/index.html");
ResponseStatus(r, 302);
return TRUE;
}
if (!strncmp(r->requestInfo.uri, "/domains/", 9)) { if (!strncmp(r->requestInfo.uri, "/domains/", 9)) {
domain_name = strdup(r->requestInfo.uri + 9); domain_name = strdup(r->requestInfo.uri + 9);
switch_assert(domain_name); switch_assert(domain_name);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论