Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Selective rewrite/redirection

$
0
0
Hello, everyone, I need some help. I have this:

server {
listen 443 ssl spdy;
server_name example-01.com;
[...]
}

server {
listen 443 ssl spdy;
server_name example-02.com;
[...]
}

server {
listen 443 ssl spdy;
server_name example-03.com;
[...]
}

server {
listen 80;
server_name example-04.com;
[...]
}

server {
listen 80;
server_name example-05.com;
[...]
}

server {
listen 80;
server_name example-06.com;
[...]
}


What I am looking for is to automatically redirect all non-SSL to SSL for those domains (with www, and without) that are running SSL, while still allowing regular non-SSL (with www, and without) access to those domains running without SSL. What would the simplest way be? Thanks!

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>