diff options
Diffstat (limited to 'content/basic')
| -rw-r--r-- | content/basic/dns.md | 36 | ||||
| -rw-r--r-- | content/basic/domain.md | 31 | ||||
| -rw-r--r-- | content/basic/nginx.md | 18 |
3 files changed, 45 insertions, 40 deletions
diff --git a/content/basic/dns.md b/content/basic/dns.md index c6d3d42..5225f96 100644 --- a/content/basic/dns.md +++ b/content/basic/dns.md @@ -10,30 +10,28 @@ can connect the two using DNS records. DNS (domain name system) records are usually put into your registrar and direct people looking up your website to the server where your website and other things will be. -Get your IPv4/IPv6 addresses from Vultr and put them into A/AAAA records -on Epik. Simple process, takes a minute, but here\'s a guide with a -million images just so you know. +Get your IPv4/IPv6 addresses from your VPS provider and put them into A/AAAA +records on your registrar. Simple process, takes a minute, but here\'s a guide +with a million images just so you know. ## Open up your Registrar -As before, we will be using -[Epik](https://www.epik.com/?affid=we2ro7sa6) as a registrar and -[Vultr](https://www.vultr.com/?ref=8384069-6G) as a server host. Go -ahead and log into your accounts on both. Open up Epik, or your -registrar, and click on your domain and then a choice for \"DNS -records.\" This is the screen you\'ll want to see on Epik. +As before, we will be using any registrar of your choice and +[Vultr](https://www.vultr.com/?ref=8384069-6G) as a server host. Go ahead and +log into your accounts on both. Open up your registrar, or your registrar, and +click on your domain and then a choice for \"DNS records.\" You'll want to see +something like this on your registrar's site. -{{< img alt="Blank Epik DNS records" src="/pix/dns-epik.png" link="/pix/dns-epik.png" >}} +{{< img alt="Blank records" src="/pix/dns-epik.png" link="/pix/dns-epik.png" >}} -Note that we are on the \"External Hosts (A, AAAA)\" tab by default. -Epik sometimes adds records to this page once you buy a domain. If they -did, you can go ahead and delete them so they look clean like the -picture above. +Note that we are on the \"External Hosts (A, AAAA)\" tab by default. There may +be default settings set by your registrar. If there are, you can go ahead and +delete them so they look clean like the picture above. **All we have to do now is get our IP addresses from Vultr and add new DNS records that will send connections to our server.** -Keep the Epik tab open and open Vultr and we will copy-and-paste our IP +Keep the registrar tab open and open Vultr and we will copy-and-paste our IP addresses in. ## Find your server\'s IP addresses @@ -45,8 +43,8 @@ attach to it). That is my **IPv4** address. {{< img src="/pix/dns-ipv4.png" alt="See the IPv4 address?" link="/pix/dns-ipv4.png" >}} -Copy your IPv4 address and on Epik, click the \"Add Record\" record -button and add two A entries pasting in your IPv4 address like I\'ve +Copy your IPv4 address and on your registrar's site, click the \"Add Record\" +record button and add two A entries pasting in your IPv4 address like I\'ve done for mine here. {{< img src="/pix/dns-ipv4-done.png" alt="IPv4 complete" link="/pix/dns-ipv4-done.png" >}} @@ -74,8 +72,8 @@ Now just click on the **IPv6** submenu to reveal your IPv6 address. {{< img alt="The IPv6 address" src="/pix/dns-ipv6.png" link="/pix/dns-ipv6.png" >}} That ugly looking sequence of numbers and letters with colons in between -(`2001:19f0:5:ccc:5400:03ff:fe58:324a`) is my **IPv6** address. Yours -will look something like it. Now let\'s put it into Epik. This time, be +(`2001:19f0:5:ccc:5400:03ff:fe58:324a`) is my **IPv6** address. Yours will look +something like it. Now let\'s put it into your registrar's site. This time, be sure to select to put in AAAA records as below: {{< img src="/pix/dns-ipv6-done.png" alt="IPv6 complete" link="/pix/dns-ipv6-done.png" >}} diff --git a/content/basic/domain.md b/content/basic/domain.md index 67cdd79..a6b762b 100644 --- a/content/basic/domain.md +++ b/content/basic/domain.md @@ -25,32 +25,39 @@ So let\'s register your domain name! ## How -Domains can be registered at any accredited <dfn>registrar</dfn>. In this -guide, I will use the registrar -[Epik](https://www.epik.com/?affid=we2ro7sa6) because it is one of the -more high quality and easy to use. The guides on this site will use -Epik, but if you choose to register your domain with one of the [many, -many other registrars](https://www.icann.org/en/accredited-registrars), -you can still do most of what Epik does, albeit options and settings -might appear in different menus. +Domains can be registered at any accredited <dfn>registrar</dfn> and there are +[a lot to choose from](https://www.icann.org/en/accredited-registrars). Some major names are +[Host Gator](https://www.hostgator.com/domains), +[Blue Host](https://www.bluehost.com/domains), +[Name Cheap](https://www.namecheap.com/domains/) or +[Dream Host](https://www.dreamhost.com/domains/). + +There are also sites that are more private, like [Njalla](https://njal.la/) and +[Cheap Privacy](https://cheapprivacy.ru/), which register a domain for you +under their name, but still allow you access to it. (Normally all websites must +be registered with the ICANN with a real name and address, but these sites +allow you to bypass that.) + +Choosing a registrar is not permanent, and you can transfer domains to a +different registrar if you get a better deal later, so in most cases, you can just +choose one and let's head on... ### Basic info about domain names -- Domain names usually require a *very* small year fee to keep +- Domain names usually require a *very* small yearly fee to keep registered, usually around \$12 for most generic TLDs. There are some \"specialty\" TLDs that are more expensive, but `.com`, `.xyz` and other basic TLDs are that cheap. - Once you own a domain, it is yours as long as you pay the yearly fee, but you can also sell it to someone for however much you want. -- Domain names do not hold your data or your website, instead, you add +- Domain names do not hold your data or your website; instead, you add \"DNS settings\" that direct people connecting to your domain to your IP address. The purpose of a domain name is so that people don\'t have to remember your IP address to find your website! ### Looking for domain names -Let\'s go to [Epik\'s site](https://www.epik.com/?affid=we2ro7sa6) and -you can search for domain names. +Let\'s go to our registrar's site and you can search for domain names. You can look for whatever domain name you want. Domains that are already bought and owned by someone else might have the option to \"Backorder,\" diff --git a/content/basic/nginx.md b/content/basic/nginx.md index 3ec3af7..d76fb54 100644 --- a/content/basic/nginx.md +++ b/content/basic/nginx.md @@ -33,7 +33,7 @@ for your password, and you can just copy or type in the password from Vultr\'s site. If you get an error here, you might not have done your [DNS -settings](dns.html) right. Double check those. Note you can also replace +settings](/basic/dns) right. Double check those. Note you can also replace the `example.org` with your IP address, but you\'ll want to fix your DNS settings soon. @@ -51,7 +51,7 @@ apt install nginx The first command checks for packages that can be updated and the second command installs any updates. -The third command installs `nginx` (pronounced Engine-X) which is the +The third command installs `nginx` (pronounced Engine-X), which is the web server we\'ll be using, along with some other programs. ### Our nginx configuration file @@ -115,7 +115,7 @@ in `/var/www/`. Name the directory in that whatever you want. a website, say `landchad.net`, you are actually going to a file at `landchad.net/index.html`. That\'s all that is. Note that that this in concert with the line above mean that `/var/www/landchad/index.html`, a -file on our computer that we\'ll create will be the main page of our +file on our computer that we\'ll create, will be the main page of our website. Lastly, the `location` block is really just telling the server how to @@ -125,14 +125,14 @@ powerful, but this is all we need them for now. ### Create the directory and index for the site We\'ll actually start making a \"real\" website later, but let\'s go -ahead and create a little page that will appear on when someone looks up +ahead and create a little page that will appear when someone looks up the domain. ```sh mkdir /var/www/{{<hl>}}mysite{{</hl>}} ``` -Now let\'s create and index file inside of that directory which will +Now let\'s create an index file inside of that directory, which will appear when the website is accessed: ```sh @@ -167,7 +167,7 @@ systemctl reload nginx ## The Firewall {#firewall} -Vultr and some other VPS automatically install and enable `ufw`, a +Vultr and some other VPSes automatically install and enable `ufw`, a firewall program. This will block basically everything by default, so we have to change that. If you don\'t have `ufw` installed, you can skip this section. @@ -185,7 +185,7 @@ encrypted connections. We will certainly need that for the next page. <aside> As you add more services to your website, they might need you to open more ports, but that will be mentioned on individual articles. -(It should be noted that some local services only running for other services on your machine, so you *don't* need to open ports for every process running locally, *only* those that directly interact with the internet, although it's common to run those through NginX for simplicity and security.) +(It should be noted that some local services run only for other services on your machine, so you *don't* need to open ports for every process running locally, *only* those that directly interact with the internet, although it's common to run those through Nginx for simplicity and security.) </aside> @@ -199,9 +199,9 @@ someone could exploit it. Open the main Nginx config file Uncomment it, and reload Nginx. Remember to [keep your server software up to -date](maintenance.html#update) to get the latest security fixes! +date](/../maintenance#update) to get the latest security fixes! -## We now have running website! +## We now have a running website! At this point you can now type in your website in your browser and this webpage will appear! |
