Fix SSL certificate validation with ProxyPass

If you proxyPass your whole account and still want/need to have URL validation for your free SSL certificate (AutoSSL / Let’s Encrypt / cPanel / Certbot) – validation request, that requires separate text file – will also by served by your ProxyPass WS application, which will most likely brake it with some error, like in my case – 403 error.

You need to tell Apache to not pass specific folder, where you put validation text file. In my case (apache / cPanel) – it was folder “.well-known”. So I have added these 3 lines to custom include config for that specific virtual host.

<Location "/.well-known">
ProxyPass "!"

Important is to add these lines before main ProxyPass option.