Welcome! Log In Create A New Profile

Advanced

Re: Trailing slash issue with https redirect - Nginx

nanaya
September 23, 2015 06:12AM
Hi

On Wed, Sep 23, 2015, at 07:02 PM, linsonj wrote:
>
> Issue is that when I try to access http://webapp.mydomain.com using
> current
> setup, it is redirecting to https://webapp.mydomain.com// ( with two
> trailing slash at the end of url). Looking for a solution to remove this
> double slash issue.
>
> I'm not sure what exactly the problem is. Any suggestion would be of
> great
> help.
>

Maybe should look closer at this line.

> rewrite ^(.*)$ https://$servername.mydomain.com/$1;

(additionally, there's better way to do it)

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
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: 221
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready