社区
Web开发应用服务器
帖子详情
二级域名配置问题?
frankh2002
2003-10-19 01:20:05
例如:我已经配置了域名:www.163.com ip:202.108.36.172
我想配置一个:sports.163.com的二级域名,ip也是202.108.36.172
请问该如何做?我如何把sports.163.com映射到/home/www/sports/下,我用的是redhat9.0
...全文
109
3
打赏
收藏
二级域名配置问题?
例如:我已经配置了域名:www.163.com ip:202.108.36.172 我想配置一个:sports.163.com的二级域名,ip也是202.108.36.172 请问该如何做?我如何把sports.163.com映射到/home/www/sports/下,我用的是redhat9.0
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
3 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
luok
2003-10-25
打赏
举报
回复
注册一个域名,这个域名,一般都是有后台管理的,你这些功能,在管理后台,轻松实现.
跟我联系QQ 1013850
xharry
2003-10-25
打赏
举报
回复
使用虚拟主机
NameVirtualHost 210.45.217.5:80
#Virtual Host for Office of AnHui University
<VirtualHost 210.45.217.5>
ServerAdmin charry@ah163.com
DocumentRoot /var/www/html
ServerName xxb.ahu.edu.cn
ErrorLog /var/log/httpd/error_log
</VirtualHost>
#Virtual Host for charry.wox.org
<VirtualHost 210.45.217.5>
ServerAdmin charry@ah163.com
DocumentRoot /home/charry/html
ServerName charry.wox.org
ErrorLog /home/charry/html/err.log
</VirtualHost>
<VirtualHost 210.45.217.5>
ServerAdmin charry@ah163.com
DocumentRoot /home/charry/html
ServerName www.charry.wox.org
ErrorLog /home/charry/html/err.log
</VirtualHost>
<VirtualHost 210.45.217.5>
ServerAdmin charry@ah163.com
DocumentRoot /home/charry/html/download
ServerName download.charry.wox.org
ErrorLog /home/charry/html/err.log
</VirtualHost>
<VirtualHost 210.45.217.5>
ServerAdmin charry@ah163.com
DocumentRoot /home/charry/html/bbs
ServerName bbs.charry.wox.org
ErrorLog /home/charry/html/err.log
</VirtualHost>
<VirtualHost 210.45.217.5>
ServerAdmin charry@ah163.com
DocumentRoot /home/charry/html/music
ServerName music.charry.wox.org
ErrorLog /home/charry/html/err.log
</VirtualHost>
<VirtualHost 210.45.217.5>
ServerAdmin charry@ah163.com
DocumentRoot /home/charry/html/php
ServerName php.charry.wox.org
ErrorLog /home/charry/html/err.log
</VirtualHost>
<VirtualHost 210.45.217.5>
ServerAdmin charry@ah163.com
DocumentRoot /home/charry/html/news
ServerName info.charry.wox.org
ErrorLog /home/charry/html/err.log
</VirtualHost>
#Virtual Host for Lemon(My Girl Friend)
<VirtualHost 210.45.217.5>
ServerAdmin charry@ah163.com
DocumentRoot /home/lemon/html
ServerName lemon.wox.org
ErrorLog /home/lemon/html/err.log
</VirtualHost>
<VirtualHost 210.45.217.5>
ServerAdmin charry@ah163.com
DocumentRoot /home/lemon/html
ServerName www.lemon.wox.org
ErrorLog /home/lemon/html/err.log
</VirtualHost>
<VirtualHost 210.45.217.5>
ServerAdmin charry@ah163.com
DocumentRoot /home/charry/html/iraq
ServerName iraq.charry.wox.org
ErrorLog /home/charry/html/err.log
</VirtualHost>
<VirtualHost 210.45.217.5>
ServerAdmin charry@ah163.com
DocumentRoot /home/charry/html/fuckjapanese
ServerName fuckjapanese.charry.wox.org
ErrorLog /home/charry/html/err.log
</VirtualHost>
这个我曾经的配置文件,你参考一下
你的域名需要支持泛域名
frankh2002
2003-10-19
打赏
举报
回复
问题是:当我输入sports.163.com的时候,与www.163.com显示的内容一样,请问还要怎么设置?如何把sports.163.com映射到/home/www/sports/下?
Nginx
配置
二级域名
当一个域名需要使用在两个项目上后,我们就需要使用到
二级域名
,在 Nginx 中
配置
二级域名
如下: 1、原始
配置
文件如下 events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65; server {
顶级域名 一级域名
二级域名
三级域名什么区别?
书面定义 顶级域名就是一级域名,比如 .com .org .cn N级域名就是在N-1级域名前追加一级。 比如
二级域名
是在一级域名前加一级,
二级域名
示例:http://baidu.com http://zhihu.com http://qq.com 注: 有些人会说 http://baidu.com http://zhihu.com http://qq.com 是一级域名,虽然是错误的-但可以理解(说的人多了也就是对的了……),这是站在使用者/购买者角度看的,对于购买域名者来说 http://xxx.com
【服务器】nginx
二级域名
配置
关于Nginx
二级域名
的
配置
,网上有好多文章和教程(好多都一样的),然而发现有太多复制粘贴且不适用的,这里安利一个炒鸡简单的方式
配置
nginx
二级域名
的方法。 首先介绍使用到的服务器的环境LNMP环境(其中nginx版本1.4.6,服务器是ubuntu 14.04的),可能因为版本
问题
有
配置
的方式和文件的位置有细微不同。 服务商域名
配置
我们先去域名提供商哪里去将我们的域名和我们的主机(公网
如何添加
二级域名
例外:若
二级域名
指向不同服务器IP且服务类型变更(如主域名是博客,
二级域名
是电商),需咨询当地管局。如有复杂需求(如负载均衡、多地域解析),可结合华为云。,需在对应服务控制台中添加域名并
配置
CNAME记录(参考华为云文档)。)已备案的情况下,通常无需额外备案(但需确保内容合规)。服务器(如华为云ECS)已准备好接收
二级域名
的流量。:填写服务器公网IP(如华为云ECS的弹性IP)。的高级功能(如智能解析、权重
配置
)进一步优化。(或其他DNS服务商,如阿里云、腾讯云等)。在域名列表中找到你的主域名(如。
配置
Nginx
二级域名
(3)如果一级域名与
二级域名
为不同接入商,一级域名在原来的接入商备案成功后,在
二级域名
解析指向的新的接入商处需要将该一级域名进行新增接入备案,并将所接入
二级域名
填写在备案信息备注中。如果只是想要http协议,那么到此就可以了,如果想要https协议访问域名地址,那么
配置
SSL证书是为了能够通过https来访问,就不会提示不安全。但是,如果
二级域名
指向的是不同的IP地址,则要跟接入商联系,让接入商在原备案网站下添加接入信息。(2)如果一级域名与
二级域名
为同一接入商,一级域名备案成功后使用
二级域名
无需备案。
Web开发应用服务器
5,657
社区成员
20,164
社区内容
发帖
与我相关
我的任务
Web开发应用服务器
Web开发应用服务器相关讨论专区
复制链接
扫一扫
分享
社区描述
Web开发应用服务器相关讨论专区
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章