Disabling a server with proxying enabled fails to disable the virtualhost

When a virtual host has proxying enabled and you disable the server, the apache vhost is not disabled

disabling the server adds the following directive

AliasMatch ^/.*$ /home/{hostname}/public_html/disabled_by_virtualmin.html

however this does nothing because the proxy directives take precedence

ProxyPass / https://example.com/
ProxyPassReverse / https://example.com/
SSLProxyEngine on
<Proxy *>
allow from all


You're right - the proxying takes precedence, and can't be easily over-ridden via another Apache directive.

The work-around I'd recommend is configuring Virtualmin to also disable the DNS domain when disabling a virtual server.