Category: nginx

Serving Static Sites with Nginx

Nginx is at its fastest when there's no backend to talk to. A complete guide to serving static sites — clean URLs, pre-compressed assets, aggressive caching, and security headers you can actually lock down.

Using GeoIP in Nginx

Set up Nginx's GeoIP module for country detection without recompiling — modern database sources, country-based routing, access control, and passing location data to PHP.

Handling Wildcard Subdomains with Nginx and PHP

Catch any subdomain at the DNS level, configure Nginx to accept it, and route it dynamically in PHP — with modern wildcard SSL, provider availability notes, and realistic use cases for 2026.