Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to rewrite the URL by defining various patterns in the standalone.xml of my JBoss configuration.

This is how it looks like right now:

<virtual-server name="default-host" enable-welcome-root="false">
    <alias name="localhost"/>
    <alias name="example.com"/>
    <rewrite pattern="^/$" substitution="foo$1" flags="nocase"/>
    <rewrite pattern="^bar$" substitution="foo$1" flags="nocase"/>
 </virtual-server>

But neither of these work! I have a jruby application set up with torquebox on /foo, if that matters. I wouldn't mind setting the rewrites in another file, if that works better. I just don't know how.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

I don't think the rewrite will be processed unless it matches a webapp.

Try deploying your application into ROOT instead of foo.

share|improve this answer
    
not my first preference, but I ended up doing that. thanks... –  panmari Dec 14 '12 at 19:43

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.