linux apache泛域名解析及dns相关
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 [email protected] 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>
注意:紫色这两行是关键。
相关推荐
KevinXC 2020-08-12
bluecarrot 2020-11-23
Attend 2020-11-17
ZHAICAN 2020-11-16
codedecode 2020-11-14
zhangbingb 2020-11-12
ykmail 2020-11-11
futurezone 2020-11-06
rikeyone 2020-11-04
橄榄 2020-11-04
WenCoo 2020-10-31
zhangbingb 2020-09-21
liuyuchen 2020-10-27
ROES 2020-10-24
Gexrior 2020-10-22
ZHAICAN 2020-10-20
风语者 2020-10-16