proper way to redirect from http to https w/query string notifier
Jonathan Vanasco
nginx at 2xlp.com
Tue Mar 24 15:33:41 UTC 2015
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
More information about the nginx
mailing list