Here are some important topics you should be familiar with whenever you are managing a server.
-
Keep packages up to date.
+
Keep packages up to date.
All GNU/Linux distributions use package managers to easily be able to install and update packages without manually downloading them.
On Debian, which we use here for these tutorial the package manager is apt-get or apt for short.
At this point, we should have a domain name and a server and the domain name should direct to the IP address of the server with DNS records.
- As I said in previous articles, the instructions I will give will be for Debian 10.
+ As I said in previous articles, the instructions I will give will be for Debian.
In this article, other distributions might work a little differently.
Logging in to the server
@@ -48,7 +48,7 @@
-
Installing the Webserver: NGINX
+
Installing the Webserver: Ngninx
If the program runs without an error, ssh has now logged you into your server.
@@ -217,6 +217,16 @@ Port 80 is the canonical webserver port, while 443 is the port used for encrypte
We will certainly need that for the next page.
+
Nginx security hint
+
+
By default, Nginx and most other webservers automatically show their version number on error pages.
+It's a good idea to disable this from happening because if an exploit comes out for your server software, someone could exploit it. Open the main Nginx config file /etc/nginx/nginx.conf and find the line # server_tokens off;. Uncomment it, and reload Nginx.
+