nginx v1.8.0 / redirects
Francis Daly
francis at daoine.org
Tue Sep 1 21:16:19 UTC 2015
On Tue, Sep 01, 2015 at 04:41:20PM -0400, fsantiago at deviltracks.net wrote:
Hi there,
> 1.> redirect <domain> > www.<domain>
> a.) if www is already present, skip to step 2
>
> 2.> redirect http://www.<domain> request > https://......
http://nginx.org/en/docs/http/server_names.html
Use two server{} blocks.
One matches only www.* and redirects to https://$host$request_uri
The other redirects to http://www.$host$request_uri
f
--
Francis Daly francis at daoine.org
More information about the nginx
mailing list