Change Nginx Version Header

Edit nginx.h find lines: Change them as follows: Save and close the file. Now, you can compile the server. Add the following in nginx.conf to turn off nginx version number displayed on all auto generated error pages: Above hack doesn't work here's the good one: edit src/http/ngx_http_header_filter_module.c around line 48,…

Nginx Limit Available Methods

GET and POST are the most common methods on the Internet. Web server methods are defined in RFC 2616. If a web server does not require the implementation of all available methods, they should be disabled. The following will filter and only allow GET, HEAD and POST methods: More About…

Nginx SSL/HTTPS

HTTP is a plain text protocol and it is open to passive monitoring. You should use SSL to to encrypt your content for users. Create an SSL Certificate Type the following commands: Edit nginx.conf and update it as follows: Restart the nginx: