This commit is contained in:
地平线
2015-05-07 17:30:15 +08:00
parent 29c66f63d0
commit 2d850d4607
2 changed files with 2 additions and 2 deletions

View File

@@ -134,7 +134,7 @@
<servlets prefix="/pipes" autoload="true" includes="" excludes="">
<!--
当Server为HTTP、HTTPS协议时ResourceServlet才有效. 默认存在一个有默认属性的resource-servlet节点
webroot: web资源的根目录 默认取server节点中的root值
webroot: web资源的根目录, 多个目录用;分隔请求页面url时如果第一个目录不存在则会查询下一个目录是否存在该文件至到所有目录集合 默认取server节点中的root值
-->
<resource-servlet webroot="root">
<!--

View File

@@ -100,7 +100,7 @@ public final class HttpResourceServlet extends HttpServlet {
public void init(Context context, AnyValue config) {
String[] rootstrs = null;
if (config != null) {
rootstrs = config.getValue("webroot", "root").trim().split(",");
rootstrs = config.getValue("webroot", "root").trim().split(";");
for (int i = 0; i < rootstrs.length; i++) {
String rootstr = rootstrs[i];
if (rootstr.indexOf(':') < 0 && rootstr.indexOf('/') != 0 && System.getProperty("APP_HOME") != null) {