Subdomain

42 views
Skip to first unread message

sergio casquejo

unread,
Sep 3, 2018, 5:44:20 PM9/3/18
to Google App Engine
Hi, 

I have successfully created domain and have deployed successfully now what I want is I have subdomain like dev.domain.com and I want to point it to a certain directory of the root domain what should I do. please help me thanks.

David (Google Cloud Support)

unread,
Sep 4, 2018, 4:43:30 PM9/4/18
to google-a...@googlegroups.com

Hello Sergio,


You can use your app.yaml handlers in order to map your subdomain to a directory in your root domain. First, make sure you mapped your app to both your custom domain and subdomain correctly Mapping Custom Domains and then add two references to the directory in your app.yaml. To get more information about how app.yaml works, please review app.yaml Reference, specially Handlers element.


You could also create a new service and use a dispatch.yaml configuration file to send incoming requests to a specific service based on the path or hostname in the URL. The new service mapped to “dev.domain.com”, can be set up so every request to this subdomain will be sent to a file in a static directory.


Please review this stackoverflow post that has a more detailed answer to your question.


Reply all
Reply to author
Forward
0 new messages