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