assumed to be a directory path relative to the home directory of the
specified user. Given this configuration:</p>
- <highlight language="config">UserDir public_html</highlight>
+ <highlight language="config">
+UserDir public_html
+ </highlight>
<p>the URL <code>http://example.com/~rbowen/file.html</code> will be
translated to the file path
constructed using that path, plus the username specified. Given this
configuration:</p>
- <highlight language="config">UserDir /var/html</highlight>
+ <highlight language="config">
+UserDir /var/html
+ </highlight>
<p>the URL <code>http://example.com/~rbowen/file.html</code> will be
translated to the file path <code>/var/html/rbowen/file.html</code></p>
in which the asterisk is replaced with the username. Given this
configuration:</p>
- <highlight language="config">UserDir /var/www/*/docs</highlight>
+ <highlight language="config">
+UserDir /var/www/*/docs
+ </highlight>
<p>the URL <code>http://example.com/~rbowen/file.html</code> will be
translated to the file path
<p>Multiple directories or directory paths can also be set.</p>
- <highlight language="config">UserDir public_html /var/html</highlight>
+ <highlight language="config">
+UserDir public_html /var/html
+ </highlight>
<p>For the URL <code>http://example.com/~rbowen/file.html</code>,
Apache will search for <code>~rbowen</code>. If it isn't found,
<p>The <directive module="mod_userdir">UserDir</directive> directive can be
used to redirect user directory requests to external URLs.</p>
- <highlight language="config">UserDir http://example.org/users/*/</highlight>
+ <highlight language="config">
+UserDir http://example.org/users/*/
+ </highlight>
<p>The above example will redirect a request for
<code>http://example.com/~bob/abc.html</code> to
<p>Using the syntax shown in the UserDir documentation, you can restrict
what users are permitted to use this functionality:</p>
- <highlight language="config">UserDir disabled root jro fish</highlight>
+ <highlight language="config">
+UserDir disabled root jro fish
+ </highlight>
<p>The configuration above will enable the feature for all users
except for those listed in the <code>disabled</code> statement.