如何动态创建虚拟子域 [英] how can i create virtual subdomain on the fly

查看:87
本文介绍了如何动态创建虚拟子域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以帮助我,如何动态创建虚拟子域
示例:Blogger网站生成blogname.blogspot.com我想做类似的事情.
我有2个与主域具有相同站点结构的子域,但是它会根据要访问的子域呈现不同的数据.
示例:
furniture.abc.com
electronics.abc.com
其他几点:我正在共享托管中完成所有这些工作,并且无法访问IIS

Can anyone please help me with, how can i create virtual subdomain on the fly
Example: Blogger website generates blogname.blogspot.com I would like to do something similar.
I have 2 subdomains which have same site structure as maindomain but it would render different data based on subdomain it is trying to access.
Example:
furniture.abc.com
electronics.abc.com
Few other points: I am doing all this stuff in shared hosting and don''t have access to IIS

推荐答案

据我所知,您不能按照您描述的方式进行操作.您将需要访问您的网站控制面板并在其中添加子域,因为需要将公共IP分配给该子域名.

希望这有道理
As far as I am aware you can''t do this in the manner you are describing. you will need to have access to your websites control panel and add the subdomain there as a public ip will need to be assigned to the subdomain name.

Hope this makes sense


这篇关于如何动态创建虚拟子域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆