Red Hat ENTERPRISE LINUX 3 Reference Manual page 169

Hide thumbs Also See for ENTERPRISE LINUX 3:
Table of Contents

Advertisement

Chapter 10. Apache HTTP Server
10.5.59.
Location
The
and
Location
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
/Location
Again, replace
.example.com
10.5.60.
ProxyRequests
To configure the Apache HTTP Server to function as a proxy server, remove the hash mark (
the beginning of the
stanza. Set the
Proxy
to the server in the
Allow from
10.5.61.
Proxy
and
Proxy *
directives meant to apply only to the proxy server. Many directives which are allowed within a
container may also be used within
Directory
10.5.62.
ProxyVia
The
command controls whether or not an HTTP Via: header line is sent along with re-
ProxyVia
quests or replies which go through the Apache proxy server. The Via: header shows the hostname if
is set to
ProxyVia
On
along any Via: lines unchanged for
10.5.63. Cache Directives
A number of commented cache directives are supplied by the default Apache HTTP Server configura-
tion file. In most cases, uncommenting these lines by removing the hash mark (
of the line is sufficient. The following, however, is a list of some of the more important cache-related
directives.
tags create a container in which access control based on URL
/Location
with the second-level domain name for the Web server.
.example.com
with the second-level domain name for the Web server.
IfModule mod_proxy.c
ProxyRequests
directive of the
tags create a container which encloses a group of configuration
/Proxy
, shows the hostname and the Apache HTTP Server version for
, and Via: lines are removed for
Off
line, the ProxyRequests, and each line in the
directive to
, and set which domains are allowed access
On
stanza.
Proxy
container.
Proxy
Full
.
Block
) from the beginning
#
151
) from
#
, passes

Advertisement

Table of Contents
loading

Table of Contents