12.07.2015 Views

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Configuring the Server 329FIGURE 15.1Allowing HTTP RequestsConfiguring the ServerTo configure a <strong>Red</strong> <strong>Hat</strong> <strong>Enterprise</strong> <strong>Linux</strong> system as a web server, the httpd RPM packagemust be installed. If it is not installed, use <strong>Red</strong> <strong>Hat</strong> Network to install it (refer to Chapter3, “Operating System Updates”).15The main configuration file used by the web server is /etc/httpd/conf/httpd.conf. It is aplain text file that can be edited with a simple text editor such as Emacs or Vi. Refer toChapter 4, “Understanding <strong>Linux</strong> Concepts,” for more information on using these texteditors.NOTE<strong>Red</strong> <strong>Hat</strong> <strong>Enterprise</strong> <strong>Linux</strong> includes version 2.2 of the Apache HTTP server. Whenconsulting any documentation, make sure it is for version 2.2 because directives canchange from version to version. To determine what version you have installed, executethe command rpm -q httpd on the command line.The configuration options in the /etc/httpd/conf/httpd.conf configuration file arecalled directives. The file is divided into three main parts, or sets of directives:. Global configuration options for the server process. Main server options, which are also defaults for the virtual hosts. Virtual host definitions

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!