I need to redirect all traffic from http://mydomain.com to ?

What is the right way to do this in nginx?

link|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 serverfault.com/questions/250476/… – lillq Aug 5 '11 at 18:37
feedback

1 Answer

Does this do the trick?

rewrite ^/(.*) https://www.mydomain.com/$1 permanent;
link|improve this answer
feedback

Your Answer

 
or
required, but never shown