Tutorial on configuring DNS and virtual hosts in RedHat9.0

Source: Internet
Author: User
In the RedHat9.0 DNS and virtual host configuration tutorial, configure several simple virtual hosts. the IP address of the DNS server is 169.254.1.189. For example, the domain name of our company is linuxidc.com. I want to configure the following servers: ftp.linuxidc.com, mail.linuxidc.com, kuanping.linuxidc.com, soft.linuxidc.com, xiaoshou.zzvcom.com, cpzz. tutorial on configuring DNS and virtual hosts in z RedHat9.0
Configure several simple virtual hosts. the DNS server IP address is 169.254.1.189. For example, the domain name of our company is linuxidc.com. I want to configure the following servers:
Ftp.linuxidc.com, mail.linuxidc.com, kuanping.linuxidc.com, soft.linuxidc.com,
Xiaoshou.zzvcom.com, cpzz.zzvcom.com, net.zzvcom.com, and yanfa.zzvcom.com.
Install rpm software named, and then download 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
In/www/ftp/www/mail/www/soft/www/xiaoshou/www/net
/Www/yanfa/www/kuanping/www/cpzz a separate main page (index.html ),
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.