Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Proxy_pass redirection

$
0
0
Hi,

I wish to make a url redirection based on several variables while keeping the original URL.
I can do this for a single variable but not for two.
Can you help me ?

Below configuration with a single variable:

server {
listen 80;
server_name test.agena3000.fr;

location ~* ^/images/(.*)$ {
resolver 10.10.84.100;
proxy_pass http://$1?$args;
proxy_redirect off;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

Regards,

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>