Skip to content

Latest commit

 

History

History

rewrite

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Rewrite route params

In the services.yaml a rewrite pattern is defined for /geo/

proxies:
  /geo/:
    rewrite: "/geocoding-service/$1"

Hence the generated /etc/nginx/conf.d/locations.conf looks like follows:

# cat /etc/nginx/conf.d/locations.conf

location ~ ^/geo/ {
    ...
    rewrite ^/geo/(.*) /geocoding-service/$1 break;
    ...
}