From 208d31af3e0cd8141aa27ef02695f388ecd352fb Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 29 Aug 2021 16:47:53 -0400 Subject: hide nginx tokens --- nginx.html | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'nginx.html') diff --git a/nginx.html b/nginx.html index 067b5d9..0cca5b8 100644 --- a/nginx.html +++ b/nginx.html @@ -13,7 +13,7 @@

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. +

+ +

+Remember to keep your server software up to date to get the latest security fixes! +

+

We now have running website!

-- cgit v1.2.3