java - Appengine modules dispatch.xml routing with custom domain -


i have got appengine modules working. have 2 modules, app , auth. have custom domain domain.com, want route app.domain.com app module, , auth.domain.com auth modules, following dispatch.xml file,

<dispatch>     <!-- default module serves simple hostname request. -->     <url>*/favicon.ico</url>     <module>default</module> </dispatch>  <dispatch>     <!-- auth service auth module -->     <url>auth./*</url>     <module>auth</module> </dispatch>  <dispatch>     <!-- default module serves simple hostname request. -->     <url>*/favicon.ico</url>     <module>default</module> </dispatch> 

since app module default app.domain.com routed, couldn't able route auth.domain.com auth module, pointing default module,

how can route custom domain server specific module?

thanks

use full hostname:

<dispatch>   <-- * in front of hostname (*auth) optional -->   <-- allows subdomain (version) mapping  -->   <url>*auth.hostname.com/*</url>     <module>auth</module> </dispatch> 

you should consider configuring subdomain wildcard mapping: gae allow map particular module versions, e.g.

auth.hostname.com -> auth module, default version v1.auth.hostname.com -> auth module, version v1 

this useful using ssl during development, when want directly address particular version of module.


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -