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;by labrouka - How to...
OK, I solvez a part of my problem with this configuration: server { listen 80; access_log /var/log/nginx/test.log; server_name mydomain.com location /images/ { rewrite ^(/images.*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)$ http://anotherdomain.com/permalink/$2/$3/$4/$5/$7?token=$6 last; } } However, this configuration keep the rewrite ULR but I want to keep the first URL. How tby labrouka - How to...
Hi, I'm new on nginx and I want to implement a particular configuration. I set up a redirect URL http://mydomain.com/images/test/v1/03760089810361_D1C1_s89.jpg to the URL http://anotherdomain.com/permalink/v1/1/4/preview/03760089810361_D1C1_s89.jpg?token=Ck8fP9xe All this keeping the first URL. To do this, I use the following configuration works properly : server { listen 80; aby labrouka - How to...