Welcome! Log In Create A New Profile

Advanced

proper way to redirect from http to https w/query string notifier

Jonathan Vanasco
March 24, 2015 11:36AM
i need to redirecting from http to https, and append a "source" attribute for tracking (we're trying to figure out how the wrong requests are coming in)

this seems to work:

if ($query_string){
return 301 https://$host$request_uri&source=server1 ;
}
return 301 https://$host$request_uri?source=server1 ;

I'm just wondering if there is a more appropriate way
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

proper way to redirect from http to https w/query string notifier

Jonathan Vanasco March 24, 2015 11:36AM

Re: proper way to redirect from http to https w/query string notifier

Francis Daly March 24, 2015 01:34PM

Re: proper way to redirect from http to https w/query string notifier

Edho Arief March 24, 2015 01:52PM

Re: proper way to redirect from http to https w/query string notifier

Francis Daly March 24, 2015 03:28PM

Re: proper way to redirect from http to https w/query string notifier

Jonathan Vanasco March 24, 2015 06:26PM

Re: proper way to redirect from http to https w/query string notifier

Gena Makhomed March 24, 2015 02:12PM

Re: proper way to redirect from http to https w/query string notifier

Jonathan Vanasco March 24, 2015 06:24PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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