we'd like to add onto the query string an identifier of the nginx server

something like:

        return 301 https://$host$request_uri?source=server1 ;

the problem is that we can't figure out how to make this work correctly when 
the url already contains query strings.


Example:
        return 301 https://$host$request_uri?source=server1 ;
        Good!
                in  /foo.bar 
                out /foo.bar?source=server1
        Bad!
                in  /foo.bar?a=1
                out /foo.bar?a=1?source=server1

How can we get this?

                in  /foo.bar 
                out /foo.bar?source=server1

                in   /foo.bar?a=1
                out /foo.bar?a=1&source=server1


_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to