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

i need to redirect




where :id, :name and :domain are variables. any advice on this?


share|improve this question

1 Answer 1

up vote 1 down vote accepted

You can just append the end of the first url like this:

rewrite ^/verify/(.*)$ http://auth2.foo.bar/api/verify/$1

you can of course do a more complicated rewrite like this

rewrite ^/verify/(.*)/(.*)/(.*)$ http://auth2.foo.bar/api/verify/$1/$2/$3

This makes it possible to change the order of the three variables

share|improve this answer
thanks, works great! –  Tronic Dec 13 '12 at 6:24

Your Answer


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.