httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rainer M. Canavan" <>
Subject Re: [users@httpd] Rewrite and automount question
Date Mon, 11 Aug 2014 09:48:20 GMT

On Aug 8, 2014, at 17:59 , "Rose, John B" <> wrote:

> mod_userdir does not seem to cause superfluous automounter attempts when an http request
to a non-existent web address,, is received
> Is there some way to implement that mechanism with http requests
for a nonexistent "someuser"?

mod_userdir probably checks if the user actually exists. You'll have 
to implement something equivalent with RewriteCond(s) like

RewriteCond %{DOCUMENT_ROOT}$1 -d

Adjust as needed to verify that the user (or his home directory)
actually exists. You could also run a cron job every night and check
if ~user/public_html exists and build a RewriteMap or use a script
as an external rewriting program for a RewriteMap.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message