Acquiring A Slice of The Internet
Acquiring A Slice of The Internet
Acquiring A Slice of The Internet
Lease a server
Leasing a server from Hostwinds is pretty straightforward. First, visit the Hostwinds page for
leasing an unmanaged Linux VPS and click the "Order" button for their cheapest package; you'll
have to make an account in the usual way to check out. Once you've done that, you should see a
page where you can select some options for your server. There are a few important ones:
Finally, put in your card information and verify that the total is what it should be (less than
$5.00). Once you click the "Complete Order" button, they will send your server login
information to the e-mail address you made your account with.
Next, SSH into your server again and move into the "website" folder with the command cd
website ("cd" = change directory). Then start the HTTP server with
http-server -p 80
If everything has gone correctly, you should now be able to put your server's IP address into your
address bar followed by a slash and whatever you named your "hello world" file and that page
should come up.
If you close your SSH window at this point, the http-server will die and you won't be able to
access you page anymore. You can keep your HTTP server running after you close your SSH
connection by doing the following:
Make sure that you can still access your page via your server's IP address after you close
your SSH session to ensure that the http-server is, in fact, still running.
If you need to restart the http-server later, you'll first have to stop the one that is already running.
You can do this with the command killall http-server once you've SSH'd into the server
again.
Once you've purchased your domain name verify your e-mail with namecheap! If you don't
your domain name could be unexpectedly suspended.
Next, log in to namecheap and click on the "Domain List" tab off to the left. Click the "Manage"
button for your domain and then select "Advanced DNS" from the top menu. You should see two
or three records there that namecheap auto-generated for you. Delete them.
Next, create two A-records appropriate for your site using the IP address for your server. Make
sure you create two A-records, one for "www" and one for "@". Be extra careful to enter all the
information into your A records correctly since it can take a while for changes to propagate
through the DNS infrastructure.
Once you've done that, you should wait a couple of hours and then try to access your site via
your domain name! Assuming that you see the same "Hello World" page you saw when you
accessed your server via its IP address, then you are finished setting up your server. Congrats!
You own your very own slice of the internet.