Apache
Apache cheat sheet for virtual hosts, .htaccess rules, mod_rewrite, SSL setup, modules, and performance tuning with config examples.
Installation & Basic Commands
Installing and managing Apache
Installation
Installing Apache on different platforms
Commands & Configuration
Service commands, config testing, and configuration file locations
Virtual Hosts
Configuring virtual hosts for multiple sites
Basic Virtual Host
Setting up a basic virtual host
SSL/TLS Configuration
Configuring HTTPS with SSL certificates
Reverse Proxy
Proxy requests to backend application servers with mod_proxy
Reverse Proxy & Load Balancing
Forward requests to Node.js, Python, or other backend servers
.htaccess & URL Rewriting
Directory-level configuration and URL rewriting
.htaccess Basics
Common .htaccess configurations
URL Rewriting
Advanced URL rewriting with mod_rewrite
Redirects & Error Pages
Simple redirects with mod_alias and custom error pages
Logging
Configure access logs, error logs, and custom log formats
Access & Error Logs
Configure log files, formats, and rotation
Security & Access Control
Securing your Apache server
Authentication & Access Control
Password-protect directories and restrict access by IP
Security Best Practices
Essential security configurations
Headers & CORS
Set security headers and configure CORS with mod_headers
Modules & Performance
Apache modules and performance optimization
Essential Modules
Common Apache modules and their usage
Caching & Compression
Enable GZIP compression and browser caching for performance
Performance Tuning
Optimizing Apache for better performance