302 to https
    Denis F. Latypoff 
    latypoff at yandex.ru
       
    Tue Oct 13 00:32:57 MSD 2009
    
    
  
13.10.09, 00:06, "Maxim Dounin" <mdounin at mdounin.ru>:
> Hello!
> On Mon, Oct 12, 2009 at 11:37:28PM +0400, Daniel Podolsky wrote:
> > День добрый!
> > 
> > Я сильно туплю, наверное
> > 
> > Как выдать редирект на https для определенного location?
>     location /something-you-need-in-https {
>         rewrite ^ https://$host/$request_uri? redirect;
>     }
> http://sysoev.ru/nginx/docs/http/ngx_http_rewrite_module.html#rewrite
> > 
> > И куда в дальнейшем обращаться с подобными вопросами?
> Лучше всего начинать с чтения документации и/или гугла.  Если не 
> помогает - то сюда, но обычно помогает.
Гугл обычно предлагает юзать if (!-e $request_filename).
Так что лучше - сюда. 
> Maxim Dounin
-- 
br, Denis F. Latypoff.
    
    
More information about the nginx-ru
mailing list