How openbridge/nginx works
This repository packages an opinionated NGINX server configuration for serving HTML and PHP applications. The documented request path covers virtual-host handling, security and access controls, caching, and delivery either from mounted site content or configured upstreams. The README also describes TLS, compression, SEO/redirects, GeoIP, CDN support, cache purging, and monitoring. The tree contains the PHP configuration variant; HTML and other variants mentioned in the README are not present, and no source excerpts were available, so links are limited to documented configuration relationships.
Main entry points: nginx.conf NGINX configuration · location.conf Request routing · default.vhost Virtual host · cache.conf Redis cache config
Components 23
Request handling
- NGINX configuration
conf/php/nginx/nginx.conf - Virtual host
conf/php/nginx/sites-available/default.vhost - Request routing
conf/php/nginx/conf.d/location.conf - Response headers
conf/php/nginx/header.d/httpd.conf - TLS settings
conf/php/nginx/conf.d/ssl.conf - SEO and redirects
conf/php/nginx/conf.d/seo.conf
Delivery and caching
- Compression
conf/php/nginx/conf.d/gzip.conf - Cache maps
conf/php/nginx/map.d/cache - Redis cache config
conf/php/nginx/redis.d/cache.conf - Proxy upstream config
conf/php/nginx/upstream.d/proxy.conf - FastCGI config
conf/php/nginx/fastcgi.d/fastcgi.conf - PHP-FPM upstream
conf/php/nginx/upstream.d/php-fpm.conf
Security controls
- Access controls
conf/php/nginx/conf.d/secure.conf - GeoIP and limits
conf/php/nginx/geo.d - Bot protection
conf/php/nginx/bots.d - Cache purge
conf/php/nginx/conf.d/purge.conf
Operations
- Monitoring
conf/php/nginx/conf.d/monit.conf - Status endpoint
conf/php/nginx/status.d/status.conf
Other components
- Site visitor
- Redis service
- Mounted site content
- Proxy backend
- PHP-FPM service
Connections 22
- Site visitor → NGINX configuration: sends requests
- NGINX configuration → Virtual host: selects host
- Virtual host → Request routing: routes requests
- NGINX configuration → Response headers: sets headers
- NGINX configuration → TLS settings: secures traffic
- NGINX configuration → SEO and redirects: applies rules
- NGINX configuration → Compression: compresses responses
- NGINX configuration → Cache maps: uses cache maps
- NGINX configuration → Redis cache config: uses cache config
- Redis cache config → Redis service: connects to
- Request routing → Mounted site content: serves content
- Request routing → Proxy upstream config: proxies requests
- Proxy upstream config → Proxy backend: targets upstream
- Request routing → FastCGI config: handles PHP
- FastCGI config → PHP-FPM upstream: uses upstream
- PHP-FPM upstream → PHP-FPM service: forwards FastCGI
- NGINX configuration → Access controls: enforces access
- NGINX configuration → GeoIP and limits: applies geo rules
- NGINX configuration → Bot protection: applies bot rules
- NGINX configuration → Cache purge: enables purging
- NGINX configuration → Monitoring: monitors processes
- NGINX configuration → Status endpoint: exposes status