Configuration templates and deployment scripts for Nginx, WordPress, Apache HTTPD, and PHP-FPM architectures on Linux enterprise servers.
This repository demonstrates hands-on experience in web server architecture and application stack deployment on Linux systems. It details Nginx reverse proxy configurations with WordPress and MySQL 8.0, alongside Apache HTTPD integration with PHP-FPM FastCGI process management.
Nginx virtual host configuration configured for high-concurrency web serving and reverse proxying.
Key features:
- FastCGI proxy pass-through to PHP-FPM daemon (
127.0.0.1:9000). - Enabled gzip HTTP compression for static assets (
text/css,application/javascript). - Hardened HTTP security headers (
X-Frame-Options,X-Content-Type-Options,X-XSS-Protection). - Configured
/stub_statusmetrics path restricted to loopback IP (127.0.0.1) for Prometheus exporters.
Apache VirtualHost setup offloading PHP execution to PHP-FPM via FastCGI (mod_proxy_fcgi).
Key features:
- Decouples static file serving from dynamic PHP execution pools.
- Uses
FilesMatchdirectives to forward.phpexecution handlers. - Defines standard log formats and directory access controls.
Utility script for validating web server configuration files before applying reloads.
Usage:
chmod +x ./scripts/verify_configs.sh
./scripts/verify_configs.sh- Nginx Architecture: Asynchronous event-driven worker processes with stub_status telemetry for monitoring.
- PHP-FPM Management: Process manager pools handling dynamic PHP workloads independently from front-end web daemons.
- Apache Modular Integration: HTTPD configured as front-end listener with
proxy_fcgihandler modules.
.
├── README.md
├── apache/
│ └── httpd-php-fpm.conf
├── nginx/
│ └── wordpress-site.conf
└── scripts/
└── verify_configs.sh