PidFile PidFile names the file where the server records its process ID PID By

Pidfile pidfile names the file where the server

This preview shows page 374 - 376 out of 854 pages.

PidFile PidFile names the file where the server records its process ID (PID). By default the PID is listed in / var/run/httpd.pid . Proxy <Proxy *> and </Proxy> tags create a container which encloses a group of configuration directives meant to apply only to the proxy server. Many directives which are allowed within a <Directory> container may also be used within <Proxy> container. ProxyRequests To configure the Apache HTTP Server to function as a proxy server, remove the hash mark ( # ) from the beginning of the <IfModule mod_proxy.c> line, the ProxyRequests, and each line in the <Proxy> stanza. Set the ProxyRequests directive to On , and set which domains are allowed access to the server in the Allow from directive of the <Proxy> stanza. ReadmeName ReadmeName names the file which, if it exists in the directory, is appended to the end of server generated directory listings. The Web server first tries to include the file as an HTML document and then tries to include it as plain text. By default, ReadmeName is set to README.html .
Image of page 374
General Configuration Tips 349 Redirect When a webpage is moved, Redirect can be used to map the file location to a new URL. The format is as follows: Redirect / <old-path> / <file-name> http:// <current-domain> / <current- path> / <file-name> In this example, replace <old-path> with the old path information for <file-name> and <current-domain> and <current-path> with the current domain and path information for <file-name> . In this example, any requests for <file-name> at the old location is automatically redirected to the new location. For more advanced redirection techniques, use the mod_rewrite module included with the Apache HTTP Server. For more information about configuring the mod_rewrite module, refer to the Apache Software Foundation documentation online at mod_rewrite.html 23 . ScriptAlias The ScriptAlias directive defines where CGI scripts are located. Generally, it is not good practice to leave CGI scripts within the DocumentRoot , where they can potentially be viewed as text documents. For this reason, a special directory outside of the DocumentRoot directory containing server-side executables and scripts is designated by the ScriptAlias directive. This directory is known as a cgi-bin and is set to /var/www/cgi-bin/ by default. It is possible to establish directories for storing executables outside of the cgi-bin/ directory. For instructions on doing so, refer to AddHandler and Directory . ServerAdmin Sets the ServerAdmin directive to the email address of the Web server administrator. This email address shows up in error messages on server-generated Web pages, so users can report a problem by sending email to the server administrator. By default, ServerAdmin is set to [email protected] . A common way to set up ServerAdmin is to set it to [email protected] . Once set, alias webmaster to the person responsible for the Web server in /etc/aliases and run /usr/bin/ newaliases .
Image of page 375
Image of page 376

You've reached the end of your free preview.

Want to read all 854 pages?

  • Summer '17
  • ........., configuration file, Red Hat Enterprise Linux

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture