Mapping Custom Domain to Specific URL

31 views
Skip to first unread message

Francis Mwangi

unread,
Mar 27, 2017, 9:16:09 AM3/27/17
to Google App Engine
I am able to map custom domain to my appengine app. What i want is to map to a specific url within the app eg


is it possible to map custom domain to point to a specific appengine url?

Jordan (Cloud Platform Support)

unread,
Mar 27, 2017, 4:28:51 PM3/27/17
to Google App Engine
I would recommended moving your URL handler code into separate Services (e.g 'shoes.amazon.appspot.com'). Then you can upload a Dispatch configuration file which allows you to specify up to 20 specific routing rules

Alternatively, you can detect the ORIGIN Header of the incoming request and serve different content (e.g shoes,toys,etc.) depending on the Custom Domain that was requested. This method would not use individual '/shoes' URL handlers and would route all of your Custom Domains to the main ' https://amazon.appspot.com/' default handler (which would be the one performing the content serving logic). 
Reply all
Reply to author
Forward
0 new messages