How to set dynamic subdomain cross server or in DN

2019-04-15 06:56发布

  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..

2条回答
我想做一个坏孩纸
2楼-- · 2019-04-15 07:32

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
查看更多
你好瞎i
3楼-- · 2019-04-15 07:47

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.

查看更多
登录 后发表回答