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 to do ?
Regards,
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 to do ?
Regards,