Re: Rewrite and automount question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Aug 8, 2014, at 17:59 , "Rose, John B" <jbrose@xxxxxxx> 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@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx






[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux