From owner-freebsd-questions Fri Mar 24 4:45:13 2000 Delivered-To: freebsd-questions@freebsd.org Received: from cliff.i-plus.net (cliff.i-plus.net [209.100.20.42]) by hub.freebsd.org (Postfix) with ESMTP id D912537B6C7 for ; Fri, 24 Mar 2000 04:45:10 -0800 (PST) (envelope-from troy@picus.com) Received: from abyss (dhcp-05.dashit.net [209.100.22.254]) by cliff.i-plus.net (8.9.3/8.9.3) with SMTP id HAA98193; Fri, 24 Mar 2000 07:45:05 -0500 (EST) From: "Troy Settle" To: , "[FreeBSD-Questions-List] (E-mail)" Subject: RE: [OT] AliasMatch or Rewrite solution for user homepages Date: Fri, 24 Mar 2000 07:39:57 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <00ec01bf93fa$b2a7ed40$0c01a8c0@junglenote.com> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG RewriteRule ^/users/([^/]+)/?(.*) /~$1/public_html/$2 In the interest of scalability, I actually have a virtual host set up that does this: RewriteEngine on RewriteCond /usr/local/share/apache/htdocs/home/%{REQUEST_FILENAME} !-f RewriteRule ^/([^/]+)/?(.*) /~$1/public_html/$2 Sites are accessed as: http://home.i-plus.net/user HTH, -Troy ** -----Original Message----- ** From: owner-freebsd-questions@FreeBSD.ORG ** [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Dan Larsson ** Sent: Wednesday, March 22, 2000 7:33 AM ** To: [FreeBSD-Questions-List] (E-mail) ** Subject: [OT] AliasMatch or Rewrite solution for user homepages ** ** ** The whole idea idea behind this is to get rid of the tidle '~' character ** from ** a users home page. Example www.domain.com/~username to ** www.domain.com/users/username. ** I've almost got it to work by using the following apache configuration ** parameters. ** ** Alias /users/ /home/ ** UserDir http://www.domain.com/users/* ** ** This effectivly aliases to /home/username/, but since all the users pages ** are located ** in /home/username/public_html I get a directory listing denied ** error. How do ** I tell ** apache to look in the latter directory? ** ** Thanks in advance! ** ** /D ** ** ** ** ** To Unsubscribe: send mail to majordomo@FreeBSD.org ** with "unsubscribe freebsd-questions" in the body of the message ** ** To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message