Welcome! Log In Create A New Profile

Advanced

Disable automatic urlencoding with proxy_pass

May 09, 2013 05:37AM
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
Subject Author Posted

Disable automatic urlencoding with proxy_pass

lupin May 09, 2013 05:37AM

Re: Disable automatic urlencoding with proxy_pass

Francis Daly May 09, 2013 06:44PM

Re: Disable automatic urlencoding with proxy_pass

Matthieu Tourne May 09, 2013 07:04PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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