Welcome! Log In Create A New Profile

Advanced

Proxy_pass redirection

Posted by labrouka 
Proxy_pass redirection
July 31, 2015 03:13AM
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,
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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