Complete Reference with Copy-Paste Examples
Part of The Direct Path to Linux Ubuntu
— free for all students and developers.
Apache with CGI scripts IS how MyWebUniversity.com serves all chapter content — mod_cgid, VirtualHost, and SSL are directly applicable to this project.
NGINX handles 100,000+ simultaneous connections with minimal RAM. Its event-driven model makes it ideal for high-traffic reverse proxying.
Certbot auto-configures Apache and NGINX with free, auto-renewing Let's Encrypt certificates — HTTPS for every site at no cost.
Every modern web stack uses Apache or NGINX as a reverse proxy in front of Node.js, Python, Java, or Go backends. Essential architecture skill.
Run Apache:
# Apache (Ubuntu/Debian) sudo apt install apache2 sudo systemctl start apache2 sudo a2enmod rewrite ssl cgid headers sudo a2ensite mysite.conf sudo apache2ctl -t # test config sudo systemctl reload apache2 # NGINX (Ubuntu/Debian) sudo apt install nginx sudo systemctl start nginx sudo nginx -t # test config sudo systemctl reload nginx # Let's Encrypt (both) sudo apt install certbot python3-certbot-apache python3-certbot-nginx sudo certbot --apache -d example.com # Apache TLS sudo certbot --nginx -d example.com # NGINX TLS sudo certbot renew --dry-run