File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments