Apache

Francesco Ciannavei

Apache

My HTML and PHP web apps all run on Apache. At TUN2U and STCC I configured it myself on Linux servers: virtual hosts, rewrite rules and reverse proxies.

From a Raspberry Pi to production

I learned to configure Apache on a Raspberry Pi 4, the board that started my home server room, along with Linux, firewalls and router port forwarding. At STCC I set up the production environments from scratch, on Linux with Apache.

A virtual host in one command

Creating a virtual host by hand is always the same sequence of steps, so I automated it in an open-source script, apache-instantiate: it finds a free port, creates and enables the virtual host, scaffolds the document root and reloads Apache. It's described on the Bash page, and it has a Dockerfile to test it in a container.

Apache and Docker

I've run Apache inside Docker containers, both for development environments and in production, to get reproducible, consistent environments.

Where I don't use Apache

The admin panel of this site's CMS sits behind Caddy, not Apache, and is reachable only from my local network. How it's set up is on the Laravel page.

Rating
8/10

Where i've used it: