need help cleaning up user directory and php rules
Igor Sysoev
is at rambler-co.ru
Sat Mar 14 22:42:02 MSK 2009
On Sat, Mar 14, 2009 at 12:35:12PM -0700, mike wrote:
> I assume .42 will be coming soon then with at least:
>
> patch.captures.41
> the patch for auth_basic_user_file capture support
Yes, I planned it for Monday.
> :)
>
> On Sat, Mar 14, 2009 at 12:28 PM, Igor Sysoev <is at rambler-co.ru> wrote:
> > On Sat, Mar 14, 2009 at 09:33:43PM +0300, Igor Sysoev wrote:
> >
> >> On Sat, Mar 14, 2009 at 11:25:10AM -0700, mike wrote:
> >>
> >> > Is all you want the ability to have
> >> >
> >> > foo.com/~username/ ?
> >> >
> >> > If so I have it working a lot easier. Well, at least for ~mike. But
> >> > with the new regex location/etc. support it might be able to work
> >> > without that.
> >> >
> >> > something like
> >> >
> >> > location ^/~(.+) {
> >> > root /home/$1/public_html/;
> >> > }
> >> >
> >> > Perhaps? Not sure. I should probably try it but I'm too lazy. Igor
> >> > would probably know how to hack it quick.
> >>
> >> It should be:
> >>
> >> location ^/~(.+?)(/.+)?$ {
> >> alias /home/$1/public_html$2;
> >> }
> >
> > The location should be
> >
> > - location ^/~(.+?)(/.+)?$ {
> > + location ^/~(.+?)(/.*)?$ {
> >
> > Also I have found two bugs in alias captures, the patch is attached.
> >
> >
> > --
> > Igor Sysoev
> > http://sysoev.ru/en/
> >
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list