How do I configure a website hosted on a Rackspace cloud server (Ubuntu)?

7,264

Solution 1

Basically what happens when you type www.example.com in your browser is this.

  1. The browser looks up the IP address for the domain name from a DNS server.
  2. The browser sends a request for the particular resource to the given IP address (but also passes the human-readable address (the domain name), so that one IP address can serve many websites).
  3. The server returns the resource.

A much more detailed description is at http://igoro.com/archive/what-really-happens-when-you-navigate-to-a-url.

Basically if you have only one site being served from that IP address then there's nothing you need to do to associate the DNS name with the IP address on the server itself. You just have to ensure you've got the record set up appropriately on the DNS server.

If you want to serve different websites with different domain names from the one IP address then check out http://httpd.apache.org/docs/2.0/vhosts.

is it possible to point a domain name to an IP address without a name server?

I'm not sure exactly what you're getting at here. For a computer to get your IP address from a given name, it's either got to be in the specific computer's host file, or on a DNS server.

HTH

Andy

Solution 2

The name servers for the rackspace cloud are

dns1.stabletransit.com and dns2.stabletransit.com

For anyone struggling with this please read instructions here, it explains it well

http://cloudservers.rackspacecloud.com/index.php/DNS_-_Creating_a_DNS_Record

I can sympathize with the OP as I had to search for a while to figure this out, since if your coming from a background of shared hosting, how DNS works will be completely unknown if you have not read up on it or done it before

Share:
7,264

Related videos on Youtube

picardo
Author by

picardo

Updated on September 17, 2022

Comments

  • picardo
    picardo over 1 year

    I have set up a Cloud Server instance on Rackspace, and I have purchased a domain name and directed it to the IP address of my server because I want to host a Sinatra application on this server, but it's my first time doing this and I need some pointers.

    My primary confusion is: when I hit the IP address or the domain name in the browser, how is Ubuntu going to know which directory it should serve the files from? Is there a configuration file I should modify? I already modified /etc/hosts with this:

    173.1.1.23 my.domain.com

    (not the real IP address)

    But that doesn't work. My app is running...so I don't know what is missing here. Has anyone set up a site on Rackspace? Any insight would be much appreciated.

    Secondary confusion is: is it possible to point a domain name to an IP address without a name server? Just curious. GoDaddy made me think it was, but now I'm not so sure. :-/

  • picardo
    picardo almost 14 years
    "Fanatic support" live chat agent was pretty apathetic this morning. It's kind of annoying that I can't avoid their popups telling me to try their live chat everytime I vist, and when I do, I wish I hadn't.
  • picardo
    picardo almost 14 years
    Thanks, I need to read up on how DNS servers work. I used to host my site on a shared hosting service, and they made me use their nameserver urls, and I had to enter those to GoDaddy, where I purchased the domains. I did this without thinking how it worked, and now I'm feeling like fish out of water, and not sure if it'll work when I just give the IP to GoDaddy.
  • Andy
    Andy almost 14 years
    See if anything here helps: rackspace.com/apps/support/portal/1110. If you have any specific Qs do ask.