
Chapter 12. Cloning open source virtual servers 161
httpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
# chkconfig httpd on
# chkconfig --list httpd
httpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
12.1.2 Testing Apache
Start the Apache Web server to verify that it is installed successfully:
# service httpd start
Starting httpd: [ OK ]
To verify that Apache is installed correctly, after it has been started, bring up a Web browser
and point it to the server. For example, the virtual server running on LINUX01 can be reached
with the following URL:
http://<9.12.5.31>/
Use the test page shown in Figure 12-1 to verify that the Web server is working.
Figure 12-1 Apache test page
If you get an error in starting Apache, look in the log file /var/log/httpd/error-log for clues.
If Apache started successfully but you cannot reach the test page from a browser, try
accessing it using the IP address rather than the DNS name.
12.1.3 Turning on a firewall
RHEL 5.2 comes with an IP tables firewall which is disabled after a default installation. Your
enterprise may have firewalls in front of Web servers, but you may also want a firewall running
on this virtual server. This section describes how to quickly enable an IP tables firewall and
configure it to allow Web traffic through.
Comentarios a estos manuales