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

Re: Use variable with nginx proxy_pass

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

Viewing all articles
Browse latest Browse all 4759

Trending Articles



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