Welcome! Log In Create A New Profile

Advanced

Re: 302 to https

Maxim Dounin
October 12, 2009 04:14PM
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

>
> И куда в дальнейшем обращаться с подобными вопросами?

Лучше всего начинать с чтения документации и/или гугла. Если не
помогает - то сюда, но обычно помогает.

Maxim Dounin
Subject Author Posted

302 to https

Daniel Podolsky October 12, 2009 03:50PM

Re: 302 to https

Maxim Dounin October 12, 2009 04:14PM

Re: 302 to https

Denis F. Latypoff October 12, 2009 04:40PM

Re: 302 to https

Gena Makhomed October 12, 2009 04:40PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 87
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready