Trailing slash issue with https redirect - Nginx
nanaya
me at myconan.net
Wed Sep 23 10:10:29 UTC 2015
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)
More information about the nginx
mailing list