社区
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
...全文
104
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 ...
【服务器】nginx
二级域名
配置
关于Nginx
二级域名
的
配置
,网上有好多文章和教程(好多都一样的),然而发现有太多复制粘贴且不适用的,这里安利一个炒鸡简单的方式
配置
nginx
二级域名
的方法。 首先介绍使用到的服务器的环境LNMP环境(其中nginx版本...
顶级域名 一级域名
二级域名
三级域名什么区别?
比如
二级域名
是在一级域名前加一级,
二级域名
示例:http://baidu.com http://zhihu.com http://qq.com 注: 有些人会说 http://baidu.com http://zhihu.com http://qq.com 是一级域名,虽然是错误的-但可以理解(说的...
配置
Nginx
二级域名
(3)如果一级域名与
二级域名
为不同接入商,一级域名在原来的接入商备案成功后,在
二级域名
解析指向的新的接入商处需要将该一级域名进行新增接入备案,并将所接入
二级域名
填写在备案信息备注中。如果只是想要http...
如何添加
二级域名
例外:若
二级域名
指向不同服务器IP且服务类型变更(如主域名是博客,
二级域名
是电商),需咨询当地管局。如有复杂需求(如负载均衡、多地域解析),可结合华为云。,需在对应服务控制台中添加域名并
配置
CNAME记录...
Web开发应用服务器
5,657
社区成员
20,164
社区内容
发帖
与我相关
我的任务
Web开发应用服务器
Web开发应用服务器相关讨论专区
复制链接
扫一扫
分享
社区描述
Web开发应用服务器相关讨论专区
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章