httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rainer M. Canavan" <rainer.cana...@sevenval.com>
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" <jbrose@utk.edu> wrote:

> mod_userdir does not seem to cause superfluous automounter attempts when an http request
to a non-existent web address, http://website.com/~someuser, is received
> 
> Is there some way to implement that mechanism with http://website.com/someuser 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.

rainer
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message