Introduction
Apache HTTP Server is a representative of open source software projects and is the world's first Web server software to use. It can run on almost all of the widely used computer platforms.
Because it is free open source software, there are always people to develop new features, new features, and modify the original flaws.
the main features of Apache:
Open Source code: This is one of its important features, but also the basis of other features
Cross-platform applications: Apache servers can run on most platforms
Supports a variety of Web programming languages: The Apache server can support Web programming languages including Perl, PHP, Python, Java, and so on.
Modular design: Apache does not centralize all of its functions within a single service program, but rather uses standard modules to achieve proprietary functionality.
Very stable operation: Apache server can be used to build Web sites with heavy load traffic
Good security: Apache server has relatively good security, which is the common features of open source software
Experimental environment
System Environment: CentOS 6.5
Server IP Address: 192.168.100.10
Yum mount directory:/mnt/sr0
Experimental objectives
1. The client can access the Apache website home page
2. Modify the contents of the Apache website homepage
3. The client can use the domain name to access the Apache website home page
Experimental steps
first, the basic configuration of the HTTPD server
1 • Install httpd service
Yum Install httpd–y/redhat 6 default installed httpd, this step can be ignored
2 • Modify the master configuration file
VIM/ETC/HTTPD/CONF/HTTPD.CONF/HTTPD's master configuration file
3. View Apache Web page
[[Email protected] ~]# service iptables stop//firewall off
[email protected] ~]# Setenforce 0
[[email protected] ~]# service httpd start//Open HTTPd Services
4. Modify the homepage
[email protected] ~]# CD /var/www/html/
[[email protected] html]# echo "This is my Test Web" > index.html/write what you want in the site
in real life, we access all the pages basically use domain name access, rarely use IP address access.
Therefore, this reflects the importance of DNS resolution, the following tells you how to build a DNS server:
(This is just a brief introduction to forward parsing)
Second, build a DNS server
1. Install the BIND package
[Email protected] ~]# cd/mnt/sr0/packages/
[Email protected] packages]# RPM-IVH bind-9.8.2-0.17.rc1.el6_4.6.x86_64.rpm
2. Modify the master configuration file named.conf
[email protected] ~]# vim/etc/named.conf
3. Create and modify the DNS forward parsing file
[Email protected] ~]# cd/var/named/
[[email protected] named]# cp-p named.localhost benet.com.zone/change template file to forward parsing file
[[email protected] ~]# Vim/var/named/benet.com.zone/Modify forward parsing file
4. Start the DNS service
[[Email protected] html]# service named start/start DNS services
[[email protected] html]# RM–RF */delete original site content
[Email protected] html]# echo "It Works" > index.htm/Modify Site content
5. Open another window 7 as a client Access Apache Web page (authentication)
Build Apache web Base Services