Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to redirect all traffic from to ?

What is the right way to do this in nginx?

share|improve this question
Please refine your question, I do not get what you want to achieve – Alexander Azarov Mar 16 '10 at 8:24
See… – lillq Aug 5 '11 at 18:37

Does this do the trick?

rewrite ^/(.*)$1 permanent;
share|improve this answer

Your Answer


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