How to redirect HTTP to HTTPS and automatically add alternative service header
Redirect HTTP to HTTPS and automatically add alternative service header when available.
Redirect HTTP to HTTPS and automatically add alternative service header when available.
Ignore and do not log specific request URIs in the access log.
Limit allowed HTTP methods in nginx.
Configure HTTP Basic Authentication in nginx.
Use GeoIP database within nginx for request logging and access restrictions.
Block access for specific IP addresses in nginx.
A long time ago I have described how to check external IP address using ssh, so today I will display remote address using Nginx web server.
Use Docker or Pod Manager multi-stage build to compile Nginx from source code with additional headers-more-nginx-module module using Debian Bullseye image.
Take advantage of dynamic DNS resolution in an open-source version of NGINX.
Use Nginx reverse proxy to add Content-Security-Policy header and disable phoning home or external analytics inside web-browser.
Define custom Nginx log format to store SSL cipher and protocol information.
Enforce specific referer header using nginx directives.
Format and beautify Nginx configuration using dedicated utilities like nginx-config-formatter, nginxbeautifier, and crossplane.
Enable debugging log in Nginx to inspect internal behavior and upstream interactions.
Use OpenResty to perform health checks in your cloud environment as it incorporates Nginx, Lua and comes with batteries included.
Generate password digest for basic authentication of HTTP users.
nginx configuration snippet to illustrate how to serve single file.
Use regex to define server names when using Nginx to dynamically serve or route traffic.
Learn how to increase the default number of maximum server names and their length when using nginx.
Stop search engines from crawling website using simple Nginx location directive to provide robots.txt file.
Serve files from memory with a fallback using the Nginx HTTP server.
Today, I will show you how to stop referral spam using simple nginx directives to return 403 Forbidden HTTP status code after encountering troublesome referer hostnames.
I am using Let’s Encrypt certificates for several services with great success. It is easy, reliable and very straightforward service. I will share with you my personal setup used to secure AWStats statistics page as a simple example.
I will show you how to configure the AWStats web-interface using the uWSGI application server and Nginx HTTP server, which is a very simple and straightforward process.
This blog does not use more than four or five gigabytes per month, which is only about one hundredth of the available bandwidth. Still, I do not like bandwidth leechers, so I have implemented simple hotlink protection using nginx HTTP server.
I am using Jekyll to generate this website for half a year and Gandi for an even longer period of time so at the beginning of this year I revisited How to quickly download or upload directory tree over FTP post and created a simple but useful shell script to automate build and upload process.
A simple code snippet that can be used to rewrite HTTP request to HTTPS.
Configuration snippet for later reference.
Getting an SSL certificate from Gandi is a straightforward task.
A simple code snippet that can be used to pass client and proxy IP addresses.