Eye2X.org logo

How to set up a website: NGINX

NGINX is a powerful web server, load balancer, reverse proxy, mail proxy and HTTP cache. We are going to use it as the webserver.

While Apache web server is easier to set up and Cloudflare is about to release their own rust memeware webserver, we will stick with the tried and proven solution.

Server management

SSH

You can use the integrated SSH package of your OS (both UNIX-Like and Windows support OpenSSH) or you can use a client of choice, it is up to you and the steps are the same.

Log in using the SSH client or type ssh [Your.Server.IP.Address] into the terminal and enter the credentials when prompted, you will be warned about key compromise, but this is the first time, so that's normal.

If you are using a client such as SecureCRT or PuTTY, you can save the configuration locally, if you are asked for a port number, provide 22 unless you have changed the default SSH port.

Server console

Updates

send sudo apt updateto the terminal, and follow the instructions until completed. Next, sudo apt upgrade to upgrade packages. That's it. No need to reboot when updating.

Install NGINX

To install nginx, type in sudo apt install nginx and wait for it to complete.

Once that is completed, we need to tell NginX where your website is and how to access it.
Type in nano /etc/nginx/sites-available/mysite and an editor will open

Eye2X.org Index Donate Status