September 23, 2015 07:55AM
How about this:

server {
listen 80;
server_name *.mydomain.com;
return 301 https://$http_host$request_uri;
}

Andrejs
Subject Author Posted

Trailing slash issue with https redirect - Nginx

linsonj September 23, 2015 06:02AM

Re: Trailing slash issue with https redirect - Nginx

nanaya September 23, 2015 06:12AM

Re: Trailing slash issue with https redirect - Nginx

linsonj September 23, 2015 07:25AM

Re: Trailing slash issue with https redirect - Nginx

nanaya September 23, 2015 07:28AM

Re: Trailing slash issue with https redirect - Nginx

locojohn September 23, 2015 07:55AM

Re: Trailing slash issue with https redirect - Nginx

linsonj September 24, 2015 12:39AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 128
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready