need help cleaning up user directory and php rules

Edho P Arief edhoprima at gmail.com
Sun Mar 15 07:02:12 MSK 2009


On Sun, Mar 15, 2009 at 2:28 AM, 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/
>

Doesn't work, which, if iirc, I've tried before - or else I wouldn't
resort to something like the one I mailed before

And yes, I've also applied that patch

-- 
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org





More information about the nginx mailing list