How to set dynamic subdomain cross server or in DN

2019-04-15 06:58发布

问题:

  1. I have www.did5.com point to google appengine server

  2. I want to have anyname.did5.com point to www.did5.com/anyname

  3. And the url in address bar still anyname.did5.com

I can't find the way to do by using dns setting (host records)

Can anyone do ?

Please help..

回答1:

Have the same wish, but had to do HTTP 301 redirect from my domain hosting to an appengine site. It works normally, but it's required to have a working hosting, but not only domain parking. So please try to edit ".htaccess" file, which must be in the root of site hosting, with

Redirect 301 / http://anydomain.com/any


回答2:

Unfortunately, App Engine doesn't currently support 'wildcard' CNAMEs. You have to specifically CNAME each domain that you want to use and configure it in the control panel. The only way to do what you want, currently, would be to host your own reverse proxy.