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; > } > } Хех. То же самое.