RedHat9.0下的DNS和虚拟主机的配置教程

RedHat9.0下的DNS和虚拟主机配置教程
配置几个简单的虚拟主机,DNS 服务器IP为169.254.1.189例我公司的域名为:linuxidc.com.我想配置以下几个服务器为:
  ftp.linuxidc.com,mail.linuxidc.com,kuanping.linuxidc.com,soft.linuxidc.com,
  xiaoshou.zzvcom.com,cpzz.zzvcom.com,net.zzvcom.com,yanfa.zzvcom.com.
先安装RPM域名解析软件named,再下载apache.tar.gz
  #tar –zxvf apache.tar.gz
  #cd apache
  #./configure –prefix=/usr/local/apache
  #make;make install;make clean
  #vi /usr/local/apache/conf/httpd.conf
  ServerName 169.254.1.189
  NameVirtualHost 169.254.1.189
  
  ServerName ftp.linuxidc.com
  DocumentRoot /www/ftp
  TransferLog logs/ftp_access_log
  
  
  ServerName mail.zzvcom.com
  DocumentRoot /www/mail
  TransferLog logs/mail_access_log
  
  
  ServerName kuanping.zzvcom.com
  DocumentRoot /www/kuanping
  TransferLog logs/kuanping_access_log
  
  
  ServerName soft.zzvcom.com
  DocumentRoot /www/soft
  TransferLog logs/soft_access_log
  
  
  ServerName xiaoshou.zzvcom.com
  DocumentRoot /www/xiaoshou
  TransferLog logs/xiaoshou_access_log
  
  
  ServerName cpzz.zzvcom.com
  DocumentRoot /www/cpzz
  TransferLog logs/cpzz_access_log
  
  
  ServerName net.zzvcom.com
  DocumentRoot /www/net
  TransferLog logs/net_access_log
  
  
  ServerName yanfa.zzvcom.com
  DocumentRoot /www/yanfa
  TransferLog logs/yanfa_access_log
  
  #mkdir /www
  #cd /www
  #mkdir ftp mail soft xiaoshou net yanfa cpzz kuanping
分别在/www/ftp /www/mail /www/soft /www/xiaoshou /www/net
/www/yanfa /www/kuanping /www/cpzz目录下放一个各自的主页(index.html),

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wwwfgj.html