Hi,

I just want to understand how to manage correclty the dispatch.yaml.

I have 2 services :

   - Service : default
      - app.yaml :
   
runtime: php55
service: default
api_version: 3

handlers:
- url: /help/.*
  script: help.php

- url: .*
  script: default.php


   - Service : admin
      - app.yaml : 
      
runtime: php55
service: admin
api_version: 3

handlers:
- url: .*
  script: admin.php


Each PHP file, print the name of the file. For example, default.php shows 
"default"


*So, my problem, is that I don't understand the following behavior in red.*


First :

dispatch:
  # Send all mobile traffic to the mobile frontend.
  - url: "*/admin/*"
    service: admin

  # Default service serves simple hostname request.
  - url: "*/"
    service: default

result : 


   - XXXXX.appspot.com -> default
   - XXXXX.appspot.com/help -> help
   - XXXXX.appspot.com/admin -> admin
   - admin-dot-XXXXX.appspot.com -> default
   - admin-dot-XXXXX.appspot.com/help -> admin
   - admin-dot-XXXXX.appspot.com/admin -> admin

Someone, can explain me why I have this behavior ? 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/7a8e5fd1-8eb1-4edd-ab6c-007815cf94cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [google-appengine]... Alexis Marcou

Reply via email to