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.

Can someone tell me how I can redirect x.domain.com to www.domain2.com in nginx without using the rewrite module/functionality?

share|improve this question
    
Why wouldn't you want to use the rewrite module? That's what it's there for. –  womble Jul 26 '11 at 5:07
    
I considered down-voting also, but then I realized they may not have access to the server's configuration (unlikely, but possible). –  h0tw1r3 Jul 26 '11 at 5:27
add comment

1 Answer 1

In Nginx alone, impossible. Outside of Nginx, you could use an HTML page with a meta-redirect or use PHP to send a location header.

share|improve this answer
    
Ok. That's all I needed to know. Why did you down-vote my question? Who do you think you are? –  Aco Jul 26 '11 at 6:49
    
I didn't down vote the question. Why didn't you accept the answer? –  h0tw1r3 Jul 26 '11 at 7:02
add comment

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.