How to set dynamic subdomain cross server or in DNS setting

北城余情 提交于 2020-01-01 19:24:19

问题


  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.



来源:https://stackoverflow.com/questions/1022191/how-to-set-dynamic-subdomain-cross-server-or-in-dns-setting

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!