Date: Fri, 24 Mar 2000 07:39:57 -0500 From: "Troy Settle" <troy@picus.com> To: <dl@tyfon.net>, "[FreeBSD-Questions-List] (E-mail)" <freebsd-questions@freebsd.org> Subject: RE: [OT] AliasMatch or Rewrite solution for user homepages Message-ID: <NDBBLGJECLNPOOFNABJCCEANCAAA.troy@picus.com> In-Reply-To: <00ec01bf93fa$b2a7ed40$0c01a8c0@junglenote.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NDBBLGJECLNPOOFNABJCCEANCAAA.troy>