From: Rich Bowen Date: Tue, 14 Apr 2026 20:02:12 +0000 (+0000) Subject: Wrap module name in X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=811e237626b3e5d6da8fac9be89187fd0542df8d;p=thirdparty%2Fapache%2Fhttpd.git Wrap module name in git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1933070 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/rewrite/vhosts.xml b/docs/manual/rewrite/vhosts.xml index bbca372626..41322a094c 100644 --- a/docs/manual/rewrite/vhosts.xml +++ b/docs/manual/rewrite/vhosts.xml @@ -32,11 +32,11 @@ how you can use mod_rewrite to create dynamically configured virtual hosts.

-mod_rewrite is usually not the best way to configure +mod_rewrite is usually not the best way to configure virtual hosts. You should first consider the alternatives before resorting to mod_rewrite. See also the "how to avoid -mod_rewrite document. +mod_rewrite document. Module documentation @@ -107,7 +107,7 @@ starts with www., and if it does, the rewriting is skipped.

-As with many techniques discussed in this document, mod_rewrite really +As with many techniques discussed in this document, mod_rewrite really isn't the best way to accomplish this task. You should, instead, consider using mod_vhost_alias instead, as it will much more gracefully handle anything beyond serving static files, such as any @@ -125,15 +125,15 @@ dynamic content, and Alias resolution. thing as the first example. The first half is very similar to the corresponding part above, except for some changes, required for backward compatibility and to make the - mod_rewrite part work properly; the second half - configures mod_rewrite to do the actual work.

+ mod_rewrite part work properly; the second half + configures mod_rewrite to do the actual work.

-

Because mod_rewrite runs before other URI translation - modules (e.g., mod_alias), mod_rewrite must +

Because mod_rewrite runs before other URI translation + modules (e.g., mod_alias), mod_rewrite must be told to explicitly ignore any URLs that would have been handled by those modules. And, because these rules would otherwise bypass any ScriptAlias directives, we must have - mod_rewrite explicitly enact those mappings.

+ mod_rewrite explicitly enact those mappings.

# get the server name from the Host: header