regardless, shouldn't be that horrible to modify f...
# box-products
w
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
converting from one to another sounds like a good feature for https://www.rewriteguide.com/ 😉
👍 1
r
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
Thanks - hummm, not the easiest docs to consume.
w
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
😂 I'll let you know how I get on!
b
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
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
Aye aye, sir
Thats me in the green shirt throwing caution to the wind 😁
r
Good for you!