This matches what Apache 1.3 does. Also add documentation for
this feature.
PR: 9299
Submitted by: Jay Ball <jay@veggiespam.com>
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97001
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.0.43
+ *) Allow the UserDir directive to accept a list of directories.
+ This matches what Apache 1.3 does. Also add documentation for
+ this feature. [Jay Ball <jay@veggiespam.com>]
+
*) New Module: mod_logio. adds the ability to log bytes sent and
received. [Bojan Smojver <bojan@rexursive.com>]
UserDir disabled user4 user5 user6
</code></p></div>
+<p>It is also possible to specify alternative user directories.
+If you use a command like:</p>
+<div class="example"><p><code>
+Userdir public_html /usr/web http://www.foo.com/
+</code></p></div>
+<p>With a request for http://www.foo.com/~bob/one/two.html, will try to
+find the page at ~bob/public_html/one/two.html first, then
+/usr/web/bob/one/two.html, and finally it will send a redirect
+to http://www.foo.com/bob/one/two.html.</p>
+<p>If you add a redirect, it must be the last alternative in the list.
+Apache cannot determine if the redirect succeeded or not, so if you have
+the redirect earlier in the list, that will always be the alternative
+that is used.</p>
+
<h3>See also</h3><ul><li><a href="../howto/public_html.html">public_html
tutorial</a></li></ul></div></div><div id="footer"><p class="apache">Maintained by the <a href="http://httpd.apache.org/docs-project/">Apache HTTP Server Documentation Project</a></p><p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div></body></html>
\ No newline at end of file
UserDir disabled user4 user5 user6
</example>
+<p>It is also possible to specify alternative user directories.
+If you use a command like:</p>
+<example>
+Userdir public_html /usr/web http://www.foo.com/
+</example>
+<p>With a request for http://www.foo.com/~bob/one/two.html, will try to
+find the page at ~bob/public_html/one/two.html first, then
+/usr/web/bob/one/two.html, and finally it will send a redirect
+to http://www.foo.com/bob/one/two.html.</p>
+<p>If you add a redirect, it must be the last alternative in the list.
+Apache cannot determine if the redirect succeeded or not, so if you have
+the redirect earlier in the list, that will always be the alternative
+that is used.</p>
+
</usage>
<seealso><a href="../howto/public_html.html">public_html
if (apr_get_home_directory(&homedir, w, r->pool) == APR_SUCCESS) {
filename = apr_pstrcat(r->pool, homedir, "/", userdir, NULL);
}
- else {
- return DECLINED;
- }
#else
return DECLINED;
#endif
+#define T_TRUE 257
+#define T_FALSE 258
+#define T_DIGIT 259
+#define T_ID 260
+#define T_STRING 261
+#define T_REGEX 262
+#define T_REGEX_I 263
+#define T_FUNC_FILE 264
+#define T_OP_EQ 265
+#define T_OP_NE 266
+#define T_OP_LT 267
+#define T_OP_LE 268
+#define T_OP_GT 269
+#define T_OP_GE 270
+#define T_OP_REG 271
+#define T_OP_NRE 272
+#define T_OP_IN 273
+#define T_OP_OR 274
+#define T_OP_AND 275
+#define T_OP_NOT 276
typedef union {
char *cpVal;
ssl_expr *exVal;
} YYSTYPE;
-#define T_TRUE 257
-#define T_FALSE 258
-#define T_DIGIT 259
-#define T_ID 260
-#define T_STRING 261
-#define T_REGEX 262
-#define T_REGEX_I 263
-#define T_FUNC_FILE 264
-#define T_OP_EQ 265
-#define T_OP_NE 266
-#define T_OP_LT 267
-#define T_OP_LE 268
-#define T_OP_GT 269
-#define T_OP_GE 270
-#define T_OP_REG 271
-#define T_OP_NRE 272
-#define T_OP_IN 273
-#define T_OP_OR 274
-#define T_OP_AND 275
-#define T_OP_NOT 276
-
-
extern YYSTYPE ssl_expr_yylval;