Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F1B2510E44 for ; Fri, 8 Aug 2014 19:25:20 +0000 (UTC) Received: (qmail 76942 invoked by uid 500); 8 Aug 2014 19:25:17 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 76913 invoked by uid 500); 8 Aug 2014 19:25:17 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 76903 invoked by uid 99); 8 Aug 2014 19:25:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Aug 2014 19:25:17 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.192.177] (HELO mail-pd0-f177.google.com) (209.85.192.177) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Aug 2014 19:24:51 +0000 Received: by mail-pd0-f177.google.com with SMTP id p10so7393675pdj.8 for ; Fri, 08 Aug 2014 12:24:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type; bh=EaFw8th4H4UyX67xBg+M3/Y3tPVmVSYQSJk50RO50nM=; b=MK1kOYbGh+OBuLWbMenQ6DyGn5UGbnSTsMTB9iFzsF28fwATG9PYp2Djc/aqLDj3ZP 6lS+cg2gbckMnOYG/B3cufgdzclB9pjdXOxpgLxJmI4z0XlyfGvrkHpLJwdxDRQECnPS BeS12QNZvcLDEhpbyeaL6nkj/gk8wiEXsEik9um+1ek6haYEoHQb7NtMGkehNAzdG2lC OI0q7fVapk55wvglSSpOC2QCd6frV619iYkSOAkJ3fJl4x2Et+wFLx4xjmQXE7zWqDMe 2qw/+bslwMDYMYDaf67F4SIbqiJvASsVzJYkTOPt17s5euOhmy2BV1AF18UfxBhX5CIQ zepA== X-Gm-Message-State: ALoCoQn/GAtxh1SQGysZCXrZzJI1a5o6Vuy50B5ADc/zFW1XKkug+yDnvwH6+BO8Ebj67IGmuP0O X-Received: by 10.68.131.33 with SMTP id oj1mr26249352pbb.71.1407525889898; Fri, 08 Aug 2014 12:24:49 -0700 (PDT) Received: from localhost.localdomain (cpe-74-138-17-157.swo.res.rr.com. [74.138.17.157]) by mx.google.com with ESMTPSA id n10sm5517744pdp.72.2014.08.08.12.24.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 08 Aug 2014 12:24:48 -0700 (PDT) Message-ID: <53E523FC.6020803@rcbowen.com> Date: Fri, 08 Aug 2014 15:24:44 -0400 From: Rich Bowen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0 MIME-Version: 1.0 To: users@httpd.apache.org References: In-Reply-To: Content-Type: multipart/alternative; boundary="------------070100000501040304040904" X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Re: Rewrite and automount question --------------070100000501040304040904 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 08/08/2014 11:59 AM, Rose, John B 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"? What's automounter? Is that some process that mounts a user's home directory on a remote share or something? I suppose you could query a list of valid users on server startup, and use that (via mod_macro or something?) to generate a list of Alias directives? Or possibly use a RewriteMap to do the same thing based on a list of users, although RewriteMap can be a bit of a performance bottleneck. --Rich > > From: , John Rose > > Date: Friday, August 8, 2014 9:51 AM > To: "users@httpd.apache.org " > > > Subject: Rewrite and automount question > > We have experimented with using Rewrite to replace /~someuser with > /someuser > > However there is a problem with systems using automounter in the case > of an http request for a non-existing http://someserver.com/someuser > > Anyone have a way to implement the above without doing undesired > automount attempts of a non-existent "someuser"? > > Thanks > > -- Rich Bowen - rbowen@rcbowen.com - @rbowen http://apachecon.com/ - @apachecon --------------070100000501040304040904 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
On 08/08/2014 11:59 AM, Rose, John B 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"?

What's automounter? Is that some process that mounts a user's home directory on a remote share or something?

I suppose you could query a list of valid users on server startup, and use that (via mod_macro or something?) to generate a list of Alias directives? Or possibly use a RewriteMap to do the same thing based on a list of users, although RewriteMap can be a bit of a performance bottleneck.

--Rich



From: <Rose>, John Rose <jbrose@utk.edu>
Date: Friday, August 8, 2014 9:51 AM
To: "users@httpd.apache.org" <users@httpd.apache.org>
Subject: Rewrite and automount question

We have experimented with using Rewrite to replace /~someuser with /someuser

However there is a problem with systems using automounter in the case of an http request for a non-existing http://someserver.com/someuser

Anyone have a way to implement the above without doing undesired automount attempts of a non-existent "someuser"?

Thanks



-- 
Rich Bowen - rbowen@rcbowen.com - @rbowen
http://apachecon.com/ - @apachecon 
--------------070100000501040304040904--