-2

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

2
  • Why wouldn't you want to use the rewrite module? That's what it's there for.
    – womble
    Jul 26, 2011 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, 2011 at 5:27

1 Answer 1

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.

2
  • Ok. That's all I needed to know. Why did you down-vote my question? Who do you think you are?
    – Aco
    Jul 26, 2011 at 6:49
  • I didn't down vote the question. Why didn't you accept the answer?
    – h0tw1r3
    Jul 26, 2011 at 7:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .