Location; Proxyrequests; Proxy; Cache Directives - Red Hat ENTERPRISE LINUX 4.5.0 Reference Manual

Table of Contents

Advertisement

Chapter 10. Apache HTTP Server
The
directive allows the server to define environment variables and take
BrowserMatch
appropriate actions based on the User-Agent HTTP header field — which identifies the client's
Web browser type. By default, the Web server uses
specific browsers with known problems and also to disable keepalives and HTTP header
flushes for browsers that are known to have problems with those actions.
5.60.

Location

The
and
<Location>
</Location>
URL can be specified.
For instance, to allow people connecting from within the server's domain to see status reports,
use the following directives:
<Location /server-status> SetHandler server-status Order deny,allow Deny
from all Allow from <.example.com> </Location>
Replace
<.example.com>
To provide server configuration reports (including installed modules and configuration directives)
to requests from inside the domain, use the following directives:
<Location /server-info> SetHandler server-info Order deny,allow Deny from
all Allow from <.example.com> </Location>
Again, replace
<.example.com>
5.61.

ProxyRequests

To configure the Apache HTTP Server to function as a proxy server, remove the hash mark (
from the beginning of the
the
stanza. Set the
<Proxy>
access to the server in the
5.62.

Proxy

and
<Proxy *>
</Proxy>
directives meant to apply only to the proxy server. Many directives which are allowed within a
container may also be used within
<Directory>

5.63. Cache Directives

A number of commented cache directives are supplied by the default Apache HTTP Server
configuration file. In most cases, uncommenting these lines by removing the hash mark (
the beginning of the line is sufficient. The following, however, is a list of some of the more
important cache-related directives.
178
tags create a container in which access control based on
with the second-level domain name for the Web server.
with the second-level domain name for the Web server.
<IfModule mod_proxy.c>
directive to
ProxyRequests
directive of the
Allow from
tags create a container which encloses a group of configuration
to deny connections to
BrowserMatch
line, the ProxyRequests, and each line in
, and set which domains are allowed
On
stanza.
<Proxy>
container.
<Proxy>
)
#
) from
#

Advertisement

Table of Contents
loading

Table of Contents