Try creating a new module within your app and redirecting requests matching 
the host you need to that new module via dispatch.yaml 
<https://cloud.google.com/appengine/docs/php/modules/routing>, i.e.:

- url: "custom_domain_2.example.com/*"
  module: module-for-custom-domain-2




On Thursday, April 21, 2016 at 6:46:22 PM UTC+3, Alex Kerr wrote:
>
> That's a good idea, thanks, but although I'm using PHP on the backend via 
> AJAX, my pages are actually all static (and in fact it's mostly a single 
> page app with different views contained in one HTML and JS file) and served 
> by CDN so I'm wondering if there's another way that doesn't rely on 
> server-side processing...
>
> Thanks
>
> On Thursday, April 21, 2016 at 4:23:16 PM UTC+1, Mihail Russu wrote:
>>
>> On your incoming requests in your PHP code check what hostname the 
>> request came to and depending on that decide what page to render...
>>
>> On Thursday, April 21, 2016 at 6:19:18 PM UTC+3, Alex Kerr wrote:
>>>
>>> Hi,
>>>
>>> I have a custom domain set up for my GAE app (PHP) and want to add a 2nd 
>>> custom domain that points to a different homepage - so to the user appears 
>>> to be a separate site. I don't want to create a whole new app as the two 
>>> sites need to partially share Datastore and Cloud Storage backend.
>>>
>>> Adding a second custom domain appears to be easy in the Cloud Dashboard 
>>> settings, so I just need a way to point it to 
>>> myapp.appspot.com/second-home-page.html rather than just 
>>> myapp.appspot.com/ (which my first custom domain does of course).
>>>
>>> Many thanks,
>>> Alex
>>>
>>>

-- 
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/61a413f9-05de-4a97-9a49-01ff2f2d4a4b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to