From: Rich Bowen
Date: Fri, 1 May 2026 14:54:37 +0000 (+0000)
Subject: Bug 69329: Document ServerPath in vhost matching details; mark as legacy HTTP/1.0...
X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8e8be3539fd6c4ea2b9ac36c1edf9e52c2f1fd8d;p=thirdparty%2Fapache%2Fhttpd.git
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
---
diff --git a/docs/manual/mod/core.xml b/docs/manual/mod/core.xml
index 901cc9e4b2..febb614049 100644
--- a/docs/manual/mod/core.xml
+++ b/docs/manual/mod/core.xml
@@ -4690,9 +4690,17 @@ is accessed by an incompatible browser
The ServerPath directive sets the legacy
URL pathname for a host, for use with name-based virtual hosts.
+ href="../vhosts/name-based.html">name-based virtual hosts.
+
+ This is a legacy feature for providing compatibility with
+ HTTP/1.0 clients that do not send a Host: header. When
+ such a client requests a URL matching a vhost's
+ ServerPath, the request is served from that
+ vhost. In practice, all modern HTTP clients send the
+ Host: header, making this directive unnecessary.
-Apache HTTP Server Virtual Host documentation
+Name-based Virtual Host Support
+ServerPath example
diff --git a/docs/manual/vhosts/details.xml b/docs/manual/vhosts/details.xml
index df9222f64c..c913ead509 100644
--- a/docs/manual/vhosts/details.xml
+++ b/docs/manual/vhosts/details.xml
@@ -222,7 +222,13 @@
file with the specified IP address has the highest priority
and catches any request to an unknown server name, or a request
without a Host: header field (such as a HTTP/1.0
- request).
+ request). If a ServerPath
+ is configured for any of the matching vhosts, and the request URL
+ matches that path, the request is served from that vhost instead.
+ This is a legacy mechanism for HTTP/1.0 clients that do not send
+ a Host: header; see the
+ ServerPath example for
+ details.