In other words, if you access the scheme with a http value, it redirects
you to the https scheme.
I really don’t want to use any IF’s as conditionals.
Right now, the rewrite creates a redirect loop. How can I fix that?
In other words, if you access the scheme with a http value, it redirects
you to the https scheme.
I really don’t want to use any IF’s as conditionals.
Right now, the rewrite creates a redirect loop. How can I fix that?
You can create separate servers for HTTPS and HTTP or use a rewrite
like this (not tested this config):
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.
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.
Posted at Nginx Forum:
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.