Fastidious Wrote:
-------------------------------------------------------
> 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!
Huh? you either redirect all http to https or not, you can't have both. You can partially redirect folders or for example only allow root access via http and the rest https.
You'll have to be a bit more clearer what you want.
The most simplest form is this:
server {
listen 80;
server_name example-04.com;
return 301 https://example-04.com$request_uri;
}
-------------------------------------------------------
> 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!
Huh? you either redirect all http to https or not, you can't have both. You can partially redirect folders or for example only allow root access via http and the rest https.
You'll have to be a bit more clearer what you want.
The most simplest form is this:
server {
listen 80;
server_name example-04.com;
return 301 https://example-04.com$request_uri;
}