http://coldfusion.com logo
#box-products
Title
# box-products
w

websolete

06/15/2022, 6:07 PM
regardless, shouldn't be that horrible to modify from web.config's xml to tuckey's: https://tuckey.org/urlrewrite/manual/3.0/#configuration
b

bhartsfield

06/15/2022, 6:36 PM
converting from one to another sounds like a good feature for https://www.rewriteguide.com/ 😉
👍 1
r

richard.herbert

06/15/2022, 7:45 PM
I don't have too many rules but I'd prefer to understand what I'm doing rather than copy & pasting examples. The CommandBox docs suggest Undertow server rules are the best way to go but I'm struggling to find docs on the predicate language.
yay, another pseudo language to learn
r

richard.herbert

06/15/2022, 7:53 PM
Thanks - hummm, not the easiest docs to consume.
w

websolete

06/15/2022, 7:56 PM
just guessing since i haven't done what you're trying to do, but looks like you just create a conf file with the filters you need, quote from another article:
you just need to add your filters into a file WEB-INF/undertow-handlers.conf.
normally i'd just say 'good luck', but in this case i'll instead say:
set(attribute='%{LUCK}',value=good) -> path(/get/drunk/)
👍 1
r

richard.herbert

06/15/2022, 8:03 PM
😂 I'll let you know how I get on!
b

bdw429s

06/16/2022, 2:33 AM
If you read all the commandbox docs on server rules, you should have a pretty good handle on it. I cover about 75% of what the undertow docs have (which should be 99% of what you need) but in a more consumable manner. Check out the huge page of examples too.
I'm on Holiday, but if you post an example of ones of your rules, I (or others) can help you convert. I'll be home next week.
@richard.herbert
r

richard.herbert

06/16/2022, 10:40 AM
Hey Brad, put that phone down and go join your family on those sun loungers! 🙂 Thank you for prompting me to read fully those Server Rules docs. I’m now making some progress but if I get stuck I’ll raise a new thread.
b

bdw429s

06/16/2022, 3:06 PM
Aye aye, sir
Thats me in the green shirt throwing caution to the wind 😁
r

richard.herbert

06/16/2022, 3:34 PM
Good for you!
5 Views