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 have nginx installed and showing a default page on Ubuntu 11.04 inside Amazon EC2.

How does one go about setting up multiple nameservers for a website and hosting it through amazon EC2?

I am already using EBS images and taking snapshots every so often...

I really just need help setting up and registering nameservers with nginx and Amazon's EC2 service.

share|improve this question
    
The question doesn't make sense unless you mean 'name-based virtual hosts', instead of nameservers. A nameservers is another name for a DNS-server, but name-based virtual hosting is a technique to run multiple websites on a single webserver. Is that what you mean? –  Martijn Heemels Jun 23 '11 at 20:26
add comment

1 Answer

up vote 2 down vote accepted

NGINX is a webserver (not DNS).

I recommend you avoid setting up your own DNS Servers and instead use a Service like Amazon's Route 53 or Zerigo. This will save you time so you can focus on problems that are not easily solved with a few dollars a month.

If you want to run your own DNS Server have a look at this thread

EDIT: In re-reading your question. I think you may be asking how to host multiple websites in NGiNX from the same server, if that is your question, use VirtualHosts. Heres a good tutorial for ubuntu. After setting up the virtual hosts, you will need to add the domain and records to the DNS Service provider of your choice, and point your domain to those nameservers from your domain registrar (Godaddy, eNom, etc.)

Also please avoid cross posting to multiple StackExchange sites:

share|improve this answer
    
I am really just trying to host one website from an amazon ec2 instance - not multiple websites. I was under the impression that nginx was a DNS as well but now that I know it's not I will find my answer much quicker, so thank you! P.S. I only cross posted about 12 hours later once I realized that I had posted in the wrong website, sorry! :S –  darkAsPitch Jun 23 '11 at 20:36
    
no need to be sorry and it was not my intention to be rude :) NGiNX is great and very fast, we are using it in production to host quite a few wordpress installs. Checkout the slicehost articles they are a great starting point! articles.slicehost.com Cheers –  iainlbc Jun 24 '11 at 4:25
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.