From: Rich Bowen .htaccess file instead.
The Alias directive
provides mapping from a URI to a directory - usually a directory outside
of your DocumentRoot. Although it
-is possible to perform this mappint with mod_rewrite,
+is possible to perform this mapping with mod_rewrite,
Alias is the preferred method, for reasons of simplicity
and performance.
mod_vhost_alias to crate these hosts automatically.
+mod_vhost_alias to create these hosts automatically.
-Third-party modules sucha as mod_macro are -also useful for creating a large number of virtual hosts dymaically.
+Third-party modules such as mod_macro are +also useful for creating a large number of virtual hosts dynamically.
Using mod_rewrite for vitualhost creation may be
appropriate if you are using a hosting service that does not provide
@@ -154,7 +154,11 @@ seems like the right approach.
ProxyPass
+ +RewriteRule provides the [P] flag to pass rewritten URIs through
+mod_proxy. As with any use of mod_rewrite,
+you want to ask yourself whether it's really the best solution.
.htaccess file instead.
The mod_rewrite,
+is possible to perform this mapping with mod_rewrite,
Alias is the preferred method, for reasons of simplicity
and performance.
ProxyPass
+ +RewriteRule provides the [P] flag to pass rewritten URIs through
+mod_rewrite,
+you want to ask yourself whether it's really the best solution.
The following example sets an evironment variable called 'image' to a +
The following example sets an environment variable called 'image' to a value of '1' if the requested URI is an image file. Then, that environment variable is used to exclude those requests from the access log.