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...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

332CHAPTER 15Creating a Web Server with the Apache HTTP ServerGroupGroup name or GID of the Apache process (httpd) group. To be used in conjunctionwith the User directive. Default value: apacheMain Server SectionCommon directives for the main server section includeServerAdminServerNameDocumentRootEmail address or URL to be used as the contact link for the server administratorin error messages sent to clients. This directive can also be used in a virtual hostdeclaration so each site can have different contact links.Hostname and port the server uses to identify itself to clients. This directive canalso be specified in a virtual host section.Location of files accessible by clients. By default, the Apache HTTP server in <strong>Red</strong><strong>Hat</strong> <strong>Enterprise</strong> <strong>Linux</strong> is configured to serve files from the /var/www/html/ directory.The default web page of the server such as http://www.example.com/ mustbe located in this directory with a filename defined with the DirectoryIndexdirective such as index.html. If subdirectories are created within /var/www/html/,they are also available on the website as subdirectories. For example, the /var/www/html/about/ directory translates to the http://www.example.com/about/ URL.CAUTIONIf SE<strong>Linux</strong> is enabled and the DocumentRoot location is modified, the SE<strong>Linux</strong> securitycontext of the new location must be changed. Refer to the “Modifying SecurityContexts” section of Chapter 23 for instructions.DirectoryIndexErrorDocumentList of index files to use when a directory such as http://www.example.com/ orhttp://www.example.com/about/ is requested. Multiple index pages can be listed,separated by a space. Possible values include index.html, index.php, andindex.txt. This directive can be set inside a virtual host or directory section aswell. It requires the mod_dir module to be loaded.Provide a custom message, web page, or remote URL to display for HTTP errorcodes. If this directive is not defined, a default error message is displayed. Thisdirective can be defined in a virtual host or directory section to further customizeerror messages. Specify different error codes and how to handle them on separatelines. The format is as follows:ErrorDocument

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

Saved successfully!

Ooh no, something went wrong!