Skip to content

Commit 8e8be35

Browse files
committed
Bug 69329: Document ServerPath in vhost matching details; mark as legacy HTTP/1.0 feature; fix seealso link
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1933660 13f79535-47bb-0310-9956-ffa450edef68
1 parent 49d52aa commit 8e8be35

2 files changed

Lines changed: 17 additions & 3 deletions

File tree

docs/manual/mod/core.xml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4690,9 +4690,17 @@ is accessed by an incompatible browser</description>
46904690
<usage>
46914691
<p>The <directive>ServerPath</directive> directive sets the legacy
46924692
URL pathname for a host, for use with <a
4693-
href="../vhosts/">name-based virtual hosts</a>.</p>
4693+
href="../vhosts/name-based.html">name-based virtual hosts</a>.</p>
4694+
4695+
<note><p>This is a legacy feature for providing compatibility with
4696+
HTTP/1.0 clients that do not send a <code>Host:</code> header. When
4697+
such a client requests a URL matching a vhost's
4698+
<directive>ServerPath</directive>, the request is served from that
4699+
vhost. In practice, all modern HTTP clients send the
4700+
<code>Host:</code> header, making this directive unnecessary.</p></note>
46944701
</usage>
4695-
<seealso><a href="../vhosts/">Apache HTTP Server Virtual Host documentation</a></seealso>
4702+
<seealso><a href="../vhosts/name-based.html">Name-based Virtual Host Support</a></seealso>
4703+
<seealso><a href="../vhosts/examples.html#serverpath">ServerPath example</a></seealso>
46964704
</directivesynopsis>
46974705

46984706
<directivesynopsis>

docs/manual/vhosts/details.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,13 @@
222222
file with the specified IP address has the highest priority
223223
and catches any request to an unknown server name, or a request
224224
without a <code>Host:</code> header field (such as a HTTP/1.0
225-
request).</p>
225+
request). If a <directive module="core">ServerPath</directive>
226+
is configured for any of the matching vhosts, and the request URL
227+
matches that path, the request is served from that vhost instead.
228+
This is a legacy mechanism for HTTP/1.0 clients that do not send
229+
a <code>Host:</code> header; see the
230+
<a href="examples.html#serverpath">ServerPath example</a> for
231+
details.</p>
226232

227233
</section>
228234

0 commit comments

Comments
 (0)