Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


   


   


   















      :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rewrite & $remote_user


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: rewrite & $remote_user
  • From: Oleg <lego12239@xxxxxxxxx>
  • Date: Tue, 12 Mar 2013 22:50:37 +0400
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1363114440; bh=qGb4TRQfFzoVfyrRhk5KmOpDvvLAUfyWp52ugepzb4s=; h=Date:From:To:Subject:Message-ID:Reply-To:References:MIME-Version: Content-Type:Content-Disposition:Content-Transfer-Encoding: In-Reply-To:User-Agent; b=bkjRug9tl+K3vmEqd1UgkkEb6YFPLhBCgUYuRmlUmvrgpj1Ai3L/LywuJrhdqvumW OCVLtrboQzHWYbouUhEaSEy46k/cr2AJ4ACiepM2+CnPkPwAvLpo+/2ylZCCWcz8Ij eITsdeECUsEo6SDEgUvUaMJN5oHRzvAbY9gKBoCQ=
  • In-reply-to: <59B7B994-318C-49B2-9FC2-434BE79F3764@sysoev.ru>
  • References: <20130312105944.GA23025@localhost> <59B7B994-318C-49B2-9FC2-434BE79F3764@sysoev.ru>

On Tue, Mar 12, 2013 at 08:43:33PM +0400, Igor Sysoev wrote:
> location /test {
>     auth_basic      "test zone";
>     auth_basic_user_file /var/www/test/.htpasswd;
>     root /var/www;
> 
>     location = /test {
>         return 301  http://$host/test/user/$remote_user/f;
>     }
> 
>     location = /test/ {
>         return 301  http://$host/test/user/$remote_user/f;
>     }
> }

  .   .

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.