title: Google App Engine Modules :Confused about routing (dispatch.yaml)
body: <p>[After digging into the problem, it seems the issue is not about the routing but about the use of endpoints in modules. New question at <a href="https://stackoverflow.com/questions/24135252/gae-modules-and-google-endpoints]">GAE Modules and Google Endpoints</a></p>
  
  <p>I'm migrating an GAE application to modules, and I'm confused about the routing, as some queries are correctly routed, but not all of them.</p>
  
  <p>I have the following dispatch.yaml in my root folder. Note that that api module is using the Google Cloud Enpoints API</p>
  
  <pre><code>application: testapp
  
  dispatch:
    - url: "*/foo/*"
      module: foomodule
    - url: "*/_ah/spi/*"
      module: api
    - url: "testapp.appspot.com/"
      module: default
  </code></pre>
  
  <p>And then one folder by module name, each with a yaml file, defining the URL patterns with handlers, e.g. /www/www.yaml for my default module</p>
  
  <pre><code>application: testapp
  version: alpha
  runtime: python27
  api_version: 1
  threadsafe: true
  
  handlers:
  - url: /static
    static_dir: static
  - url: /.*
    script: www.app
  
  libraries:
  - name: webapp2
    version: latest
  </code></pre>
  
  <p>Queries such as <a href="http://testapp.appspot.com/xxx" rel="nofollow noreferrer">http://testapp.appspot.com/xxx</a> are correctly redirected to default, /foo/xxx ones are handled by the foomodule, but API requests (/_ah/spi/xxx) are going to the default module with a 404.</p>
  
  <p><strong>However, I can see a 200 OK for /_ah/spi/BackendService.logMessages in the logs of the instance mapped to the api module.</strong> This one comes from alpha-dot-api-dot-testapp.appspot.com - while the 404 are from testapp.appspot.com only. (NB: I'd like to make my queries work from testapp.appspot.com)</p>
  
  <p>Is there something I am doing wrong? Also, is there a way to list the configuration currently used on the server to make sure it's correctly deployed?</p>