linux apache generic domain name resolution and dns related

  • 2020-05-06 12:09:45
  • OfStack

1, vim/var/named/chroot/var/named/hrsx com. zone
Add a line:


*  IN A  192.168.0.204

2, to apache server, 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>

Note: the purple lines are the key.


Related articles: