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 am on slicehost and I followed the articles that they gave for DNS redirection and the www to non www url redirection does work.

However, what if I want a to be the default domain. Would I put as my DNS record name or would I keep as my DNS record and then do something else.

Basically, what happens is if someone goes to the url

they will be redirected to and not

I would like the second thing to happen, not just go to and call it a day. I am running nginx and am confounded on how to solve this issue. I'm not sure whether its an nginx issue or a dns issue.

Any help would be greatly appreciated!

share|improve this question
up vote 3 down vote accepted

From the nginx documentation:

server {
    listen       80;
    rewrite   ^$request_uri?;

server {
    listen       80;
share|improve this answer

Your Answer


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