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,
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,