Welcome! Log In Create A New Profile

Advanced

Problems with redirects

Danny Horne
October 15, 2019 08:42AM
Hi all,

I've been struggling to get redirects working the way I'd like,
basically I want -

http://trisect.uk > https://trisect.uk
http://site1.trisect.uk > https://site1.trisect.uk
http://site2.trisect.uk > https://site2.trisect.uk
etc....

This is the server block doing the redirects -

server {
        listen *:80;
        listen [::]:80;

        server_name trisect.uk *.trisect.uk;

        return 301 https://$server_name$request_uri;
}

I have a wildcard Let's Encrypt certificate and am using NginX 1.14.2

Hope someone can help, thanks for looking

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

Problems with redirects

Danny Horne October 15, 2019 08:42AM

Re: Problems with redirects

j94305 October 15, 2019 08:56AM

Re: Problems with redirects

Danny Horne October 15, 2019 09:02AM

RE: Problems with redirects

Reinis Rozitis October 15, 2019 09:10AM

Re: Problems with redirects

Danny Horne October 15, 2019 10:02AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 71
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