I don’t know where $sub is coming from or the significance of *.cfm or *.cfc files. If you’re proxying to an upstream, why not just set the X-Forwarded-Host header? Etc.
Next time, please fill out the help topic template. It’s important for us to understand what you’re trying to do.
@francislavoie Sorry about not adding enough context. So the $sub gets passed in by the nginx server with this server_name ~^(?<sub>.+)\.example.com$;. The intention of the code is to only apply the rewrite to files with the extension of .cfm and .cfc
Also, import lucee-proxy.conf ONLY if the file extensions were matched.