Install and configure mod_expire on FreeBSD Open Apache config file: sudo ee /usr/local/etc/apache24/httpd.conf Ensure the following is uncommented, then save and exit the file (remove # if present at the start of the line):