How to display remote address using 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. ...

April 11, 2022 · milosz · nginx

How to use multi-stage build to compile an application

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

How to take the advantage of dynamic DNS resolution in NGINX

Take the advantage of dynamic DNS resolution in an open-source version of NGINX. ...

December 15, 2021 · milosz · nginx

How to log SSL cipher and protocol information in Nginx

Define custom Nginx log format to store SSL cipher and protocol information. ...

How to enforce specific referer header using nginx

Enforce specific referer header using nginx directives. ...

How to format and beautify Nginx configuration

Format and beautify Nginx configuration using dedicated utilities like nginx-config-formatter, nginxbeautifier, and crossplane. ...

How to enable debugging log in nginx

Enable debugging log in Nginx to inspect internal behavior and upstream interactions. ...

How to use OpenResty to perform health checks

Use OpenResty to perform health checks in your cloud environment as it incorporates Nginx, Lua and comes with batteries included. ...

How to generate password digest for basic authentication of HTTP users

Generate password digest for basic authentication of HTTP users. ...

How to serve single file using nginx

nginx configuration snippet to illustrate how to serve single file. ...

January 17, 2020 · milosz · nginx

How to use regex to dynamically define server name

Use regex to define server names when using Nginx to dynamically serve or route traffic. ...

November 20, 2019 · milosz · nginx

How to increase the default number of maximum server names and their length when using nginx

Learn how to increase the default number of maximum server names and their length when using nginx. ...

November 18, 2019 · milosz · nginx

How to stop search engines from crawling website using nginx

Stop search engines from crawling website using simple Nginx location directive to provide robots.txt file. ...

October 7, 2019 · milosz · nginx

How to serve files from memory with a fallback using nginx

Serve files from memory with a fallback using the Nginx HTTP server. ...

How to stop referral spam using Nginx

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

How to use Let’s Encrypt certificate with Nginx

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

How to configure AWStats web-interface

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

Simple hotlink protection implemented in nginx

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

How to upload Jekyll blog to the Gandi Simple Hosting

I am using Jekyll to generate this website for a 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 simple but useful shell script to automate build and upload process. ...

Nginx – rewrite HTTP to HTTPS

A simple code snippet that can be used to rewrite HTTP request to HTTPS. ...

April 5, 2011 · milosz · nginx

Nginx + WordPress + SSL

Configuration snippet for later reference. ...

April 5, 2011 · milosz · nginx

Zen Photo and Nginx – rewrite rules

If you are searching for Nginx rewrite rules for Zen Photo then jump directly to the http://wiki.nginx.org/ZenPhoto wiki page.

December 3, 2010 · milosz · Linux · nginx

Nginx and Gandi SSL certificate

Getting an SSL certificate from Gandi is a straightforward task. ...

Nginx proxy and real IP address

A simple code snippet that can be used to pass client and proxy IP addresses. ...

December 1, 2010 · milosz · Linux · nginx