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 need to redirect all traffic from http://mydomain.com 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 serverfault.com/questions/250476/… –  lillq Aug 5 '11 at 18:37

1 Answer 1

Does this do the trick?

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

Your Answer

 
discard

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