[deployment-guide/comm-rel: 594/727] Updated the <Location> directive description.
Jaromir Hradilek
jhradile at fedoraproject.org
Tue Oct 19 13:14:58 UTC 2010
commit f87dfa0ecf78dc117b26c2258167870e0d921f15
Author: Jaromir Hradilek <jhradile at redhat.com>
Date: Mon Sep 6 17:23:28 2010 +0200
Updated the <Location> directive description.
en-US/The_Apache_HTTP_Server.xml | 56 ++++++++++++++++---------------------
1 files changed, 24 insertions(+), 32 deletions(-)
---
diff --git a/en-US/The_Apache_HTTP_Server.xml b/en-US/The_Apache_HTTP_Server.xml
index 17297a6..06467f2 100644
--- a/en-US/The_Apache_HTTP_Server.xml
+++ b/en-US/The_Apache_HTTP_Server.xml
@@ -303,6 +303,30 @@ httpd (pid 19014) is running...</screen>
</listitem>
</varlistentry>
<varlistentry>
+ <term><option><Location></option></term>
+ <listitem>
+ <para>
+ The <option><Location></option> directive allows you to apply certain directives to the selected URL only. It takes the following form:
+ </para>
+ <screen><Location <replaceable>url</replaceable>>
+ <replaceable>directive</replaceable>
+ …
+</Location></screen>
+ <para>
+ The <replaceable>url</replaceable> can be either a path relative to the directory specified by the <option>DocumentRoot</option> directive (for example, <literal>/server-info</literal>), or an external URL such as <literal>http://example.com/server-info</literal>.
+ </para>
+ <example id="example-apache-httpdconf-location">
+ <title>Using the <option><Location></option> directive</title>
+ <screen><Location /server-info>
+ SetHandler server-info
+ Order deny,allow
+ Deny from all
+ Allow from .example.com
+</Location></screen>
+ </example>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
<term><option>AccessFileName</option></term>
<listitem>
<para>
@@ -2493,38 +2517,6 @@ ErrorDocument 404 /404-not_found.html</screen>
</listitem>
</varlistentry>
</variablelist>
- <formalpara id="s2-apache-location">
- <title>Location</title>
- <indexterm>
- <primary><command>Location</command></primary>
- <secondary>Apache configuration directive</secondary>
- </indexterm>
- <indexterm>
- <primary>configuration directives, Apache</primary>
- <secondary><command>Location</command></secondary>
- </indexterm>
- <indexterm>
- <primary>Apache HTTP Server</primary>
- <secondary>server status reports</secondary>
- </indexterm>
- <para>
- The <command><Location></command> and <command></Location></command> tags create a container in which access control based on URL can be specified.
- </para>
- </formalpara>
- <para>
- For instance, to allow people connecting from within the server's domain to see status reports, use the following directives:
- </para>
- <screen><command><Location /server-status> SetHandler server-status Order deny,allow Deny from all Allow from <replaceable><.example.com></replaceable> </Location></command></screen>
- <para>
- Replace <replaceable><.example.com></replaceable> with the second-level domain name for the Web server.
- </para>
- <para>
- To provide server configuration reports (including installed modules and configuration directives) to requests from inside the domain, use the following directives:
- </para>
- <screen><command><Location /server-info> SetHandler server-info Order deny,allow Deny from all Allow from <replaceable><.example.com></replaceable> </Location></command></screen>
- <para>
- Again, replace <replaceable><.example.com></replaceable> with the second-level domain name for the Web server.
- </para>
<formalpara id="s2-apache-proxy">
<title>Proxy</title>
<indexterm>
More information about the docs-commits
mailing list