Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/google-app-engine/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/email/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/video/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google app engine 使用dispatch.xml在自定义域下路由非默认模块的根 关于使用默认模块的dispatch.xml功能的文档不完整:_Google App Engine - Fatal编程技术网

Google app engine 使用dispatch.xml在自定义域下路由非默认模块的根 关于使用默认模块的dispatch.xml功能的文档不完整:

Google app engine 使用dispatch.xml在自定义域下路由非默认模块的根 关于使用默认模块的dispatch.xml功能的文档不完整:,google-app-engine,Google App Engine,我有以下dispatch.xml: <?xml version="1.0" encoding="UTF-8"?> <dispatch-entries> <dispatch> <url>www.custom-domain.com/</url> <module>default</module> </dispatch>

我有以下
dispatch.xml

<?xml version="1.0" encoding="UTF-8"?>
<dispatch-entries>
    <dispatch>
        <url>www.custom-domain.com/</url>
        <module>default</module>
    </dispatch>
</dispatch-entries>
我想配置
http://www.custom-domain/admin/*
指向我的
管理控制台
模块

http://www.custom-domain.com/admin/index.html
我知道模块已部署且工作正常,因为当我转到
http://admin-console.myappid.appspot.com
它显示正确的
index.html
页面

我尝试添加以下小节。 我找了又找,找不到这不起作用的原因

文档和示例中没有明确说明的我在这里遗漏了什么?我期望它会做什么: 这在
管理控制台
模块日志中产生了以下错误

/admin/index.html No handlers matched this URL.
它实际上在做什么: 它实际做的是将
www.custom-domain.com/admin/*
路由到
管理控制台
模块的
/admin/*

http://www.custom-domain.com/admin/index.html
我尝试添加一个目录并将我的
index.html
移动到
src/main/webapp/admin/index.html
。这也不起作用,它实际上是在寻找一个处理程序

我创建了一个
Servlet
,并为
/admin/*
添加了一个映射,它开始工作

如果要路由到非默认模块的根目录: 因此,如果要将某个内容映射到非默认模块的
/
,则必须指定一个子域并将其映射到该模块

<dispatch>
    <url>admin.custom-domain.com/*</url>
    <module>admin-console</module>
</dispatch>

admin.custom-domain.com/*
管理控制台
这是我发现的在非默认模块的根上下文中访问任何内容的唯一方法

http://www.custom-domain.com/admin/index.html
/admin/index.html No handlers matched this URL.
<dispatch>
    <url>admin.custom-domain.com/*</url>
    <module>admin-console</module>
</dispatch>