用户名:
密 码: 记住
您当前的位置:首页 > 站长百科 > 服务器技术

linux apache泛域名解析及dns相关

时间:2015-01-18  来源:互联网  作者:佚名

1、vim /var/named/chroot/var/named/hrsx.com.zone
加入一行:

代码如下:
* IN A 192.168.0.204

2、到apache服务器上,vim /usr/local/apache2/conf/extra/httpd-vhosts.conf

代码如下:
<VirtualHost *:80>
setEnv APPLICATION_ENV testing
#ServerAdmin webmaster@dummy-host2.example.com
DocumentRoot /www/cmstest/my120/public/
ServerName *.hrsx.com
ServerAlias *.hrsx.com
ErrorLog logs/taaat.mya2a0.com-error_log
CustomLog logs/taaat.mya1a20.com-access_log common
</VirtualHost>

注意:紫色这两行是关键。

来顶一下
返回首页
返回首页
推荐资讯
【图文教程】dede织梦网站后台如何发表文章? 【图文教程】dede织梦网站后台如何对于新手站长可能不了解,dede织梦后台是如何发文章的。下面
2014站长圈十大事件:PR已死 移动算法兴起 2014站长圈十大事件:PR已死 移动算2014年即将过去,虽然站长圈相比过去几年稍显沉寂,但&ldquo
相关文章
    无相关信息
栏目更新
栏目热门