社区
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
...全文
74
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的),可能因为版本
问题
有
配置
的方式和文件的位置有细微不同。 服务商域名
配置
我们先去域名提供商哪里去将我们的域名和我们的主机(公网
阿里云
二级域名
配置
阿里云
二级域名
配置
二级域名
解析
配置
方法
需求背景 昨天将基于express的后台服务器部署在了腾讯云主机上,使用IP可以正常访问到我的angular演示项目了。这里给大家提供一个测试账号(账号:test,密码:0)。接着我就想,是不是可以换成域名访问呢?答案当然是可以的。于是我准备把云主机解析到我的
二级域名
下。 解析
二级域名
很多网站都会有
二级域名
,形如blog.xxx.com,bbs.xxx.com等等,玩过域名解析的同学应...
Web开发应用服务器
5,655
社区成员
20,181
社区内容
发帖
与我相关
我的任务
Web开发应用服务器
Web开发应用服务器相关讨论专区
复制链接
扫一扫
分享
社区描述
Web开发应用服务器相关讨论专区
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章