1、vim /var/named/chroot/var/named/hrsx.com.zone
加入一行:
復(fù)制代碼 代碼如下:
* IN A 192.168.0.204
2、到apache服務(wù)器上,vim /usr/local/apache2/conf/extra/httpd-vhosts.conf
復(fù)制代碼 代碼如下:
<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>
注意:紫色這兩行是關(guān)鍵。
新聞熱點(diǎn)
疑難解答