How to build a website completely by yourself

In the previous article, the way to break through geographical restrictions and regist for a FREE domain had been provided. You can see my my previous artical if you need. Today, I will teach you how to build you website with less money(Even 0!!!)

1. Regist your own domain

In the previous article, I recommanded the FREE subdomain on digitalplat, but today is a first-level domain registration.

(I). Search and choose a domain on spaceship

tips: The most cheapest first-level domain is the more than 6-digit domain(number only) with .xyz, only 0.67USD/year

Also you can choose your favorate domain.

(II). Add to cart and pay for the domain

(III). Add a payment method like Bybit card (click for cards I have recommanded)

(IV) Add Cloudflare Name Server to your domain(more details in previous artical)

2. Choose a website server

There are many ways to build the website. First is using your own computer with docker at home. You can choose any Oprating System like Windows, Linux and MacOS. Alse, some cloud servers like Google Cloud, AWS, and Azur are very good because they have longer FREE trial time. You can also choose Oracle Always free cloud, but you may lose your account any time(I lost it when I had used for two months). Every cloud can be keep forever by paying.

(I). Home device

Zero Trust -> new Tunnel

Set up the tunnel

Download software and setup following the instrction

Select your domain with subdomain and path and your URL on your device local network

Add a private network!

(II). Cloud server with Public IP.

You can choose apache2 or nginx as your webserver

Add NS record with type A, DNS only and your IPV4

Add a certificate on your server (the demo code is for Debain/Ubuntu and Nginx)

sudo apt install certbot
sudo certbot certonly --nginx -d your.domain.com

Nginx profile

sudo vim /etc/nginx/sites-available/yourdomain.com
server {
    listen 80;
    server_name your.domain.com;
    return 301 https://$host$request_uri;
}

server {
    listen 443 ssl;
    server_name your.domain.com;

    ssl_certificate     /etc/nginx/ssl/your_domain.chained.crt;
    ssl_certificate_key /etc/nginx/ssl/your_domain.key;

    ssl_protocols       TLSv1.2 TLSv1.3;
    ssl_ciphers         HIGH:!aNULL:!MD5;

    root /var/www/your_site;
    index index.html index.htm;   
}

Enable your site

sudo ln -s /etc/nginx/sites-available/yourdomain.com /etc/nginx/sites-enabled/

Restart Nginx

sudo systemctl restart nginx

留下评论

您的邮箱地址不会被公开。 必填项已用 * 标注