Configure DNS and virtual hosts in RedHat9.0

Source: Internet
Author: User
Article Title: DNS and virtual host configuration under RedHat9.0. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Configure several simple virtual hosts. the DNS server IP address is 169.254.1.189. For example, my company's domain name is stcore.com. I want to configure the following servers:

Ftp.stcore.com, mail.stcore.com, kuanping.stcore.com, soft.stcore.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.stcore.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

In the/www/yanfa/www/kuanping/www/cpzzdirectory, put a different main page (index.html) and set its attribute to 755.

#/Usr/local/apache/bin/apachectl configtest

#/Usr/local/apache/bin/httpd-S

 

[1] [2] Next page

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.