Recently I discovered Apache's built-in mod_macro:

<Macro Foo>
DocumentRoot /this
ProxyPass /that
RewriteRule /here /there
</Macro>

<VirtualHost *:80>
Use Foo
</VirtualHost>

<VirtualHost *:443>
Use Foo
</VirtualHost>

Previously I used to have Salt deploy a bunch of little snippets /etc/httpd/conf/dist/*.conf (like for example "hsts-1month.conf") and I'd "Include" those in my vhosts if necessary. After Salt, didn't bother implementing recursive directory deploy in my own tool, so those kinda became stale. Now I can get rid of the whole bunch and just define <Macros> in my main deployed httpd.conf