Skip to content

A Kong custom plugin, that allows rewrite url using regex.

Notifications You must be signed in to change notification settings

sfs77/kong-plugin-url-regex-rewriter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

kong-plugin-url-regex-rewriter

url_a  --> kong-plugin-url-regex-rewriter --> url_b --> upstream

eg.

source: /a/resource
target: /b/resource

in plugin setting page:

set regex = /a/(.*)$
set replace = /b/$1

refer to :

ngx.re.sub(subject, regex, replace, options?)

the arg url_a pass to sub function as subject, regex and replace are the same as setting page.

About

A Kong custom plugin, that allows rewrite url using regex.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%