lucee-dockerfiles
lucee-dockerfiles copied to clipboard
Current conf does not support path_info
This should be added to the lucee proxy_pass to enable path_info to be passed to tomcat for SES URLs.
# Enable path_info - http://www.lucee.nl/post.cfm/enable-path-info-on-nginx-with-lucee-and-railo
set $pathinfo "";
# if the extension .cfm or .cfc is found, followed by a slash and optional extra
if ($uri ~ "^(.+?\.cf[mc])(/.*)") {
# remember the filepath without path_info
set $script $1;
set $pathinfo $2;
# rewrite the url to match the filepath wthout path_info
rewrite ^.+$ $script break;
}
# set the custom path_info header
proxy_set_header XAJP-PATH-INFO $pathinfo;
I don't see a downside to having this in the default image. Makes "pull and run" Just Work for more people ?