Disable automatic urlencoding with proxy_pass

lupin nginx-forum at nginx.us
Thu May 9 09:37:26 UTC 2013


Hi,

 Any way to disable urlencode on nginx with proxy_pass? Following is my
config and as suggested on google I already removed the "/" URI part of 
of this "proxy_pass  http://127.0.0.1:8090;"

 Any idea how to proceed with this?

server {
        ### server port and name ###
        listen          10.0.0.1:443 ssl;
        server_name     svn.server;

        ### SSL cert files ###
        ssl_certificate      /etc/pki/tls/certs/svn.server.cert;
        ssl_certificate_key  /etc/pki/tls/private/svn.server.key;
        ssl_session_cache    shared:SSL:10m;

        location / {
                proxy_pass  http://127.0.0.1:8090;
                proxy_redirect off;

                set $fixed_destination $http_destination;
                if ( $http_destination ~* ^https(.*)$ )
                {
                    set $fixed_destination http$1;
                }

                ### Set headers ####
                proxy_set_header Host $http_host:$proxy_port;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For
$proxy_add_x_forwarded_for;
                proxy_set_header X-Forwarded-Proto https;
                proxy_set_header        Destination $fixed_destination;
        }
}


Thanks

lupin

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,239049,239049#msg-239049



More information about the nginx mailing list