Welcome! Log In Create A New Profile

Advanced

Re: https on a specific directory only?

December 06, 2010 07:08AM
On Mon, Dec 06, 2010 at 03:13:45AM -0500, TECK wrote:

> Thanks for the reply, guys.
> The idea of "listen ssl" directive is to keep the configuration
> compact:
> listen 10.30.1.50:80 default_server backlog=1024 rcvbuf=32k
> sndbuf=8k;
> listen 10.30.1.50:443 ssl;
>
> I only want to use SSL, in one directory. I know I can use the "long"
> method, my goal was to find out how I could do it in a compact form,
> like in my first post example. Thanks a lot for your help.

location /dir/ {
if ($scheme != https) {
rewrite ^ https://www.domain.com/dir$request_uri? permanent;
}
}

However, I do not recommend this .htaccess-way.
It's much better to use seprate servers.


--
Igor Sysoev
http://sysoev.ru/en/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

https on a specific directory only?

TECK December 06, 2010 02:48AM

Re: https on a specific directory only?

Mikhail Mazursky December 06, 2010 03:06AM

Re: https on a specific directory only?

Fran├žois Battail December 06, 2010 03:08AM

Re: https on a specific directory only?

TECK December 06, 2010 03:13AM

Re: https on a specific directory only?

Igor Sysoev December 06, 2010 07:08AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 85
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready