404 acme-challenge WHM Auto SSL Since Installing Varnish

Hi, I am using a server running WHM and I have enabled Auto SSL to use Let's encrypt. Everything was working great. I went into one of the Cpanels on this VPS server and ran the Auto SSL for the site, no issues.

Now that I have enabled Varnish Cache I cannot get the auto SSL to work and I get a 404 on acme-challenge.

I read about using Nginx as a reverse proxy and have installed Nginx this morning. I looked at some tutorials on configuring Nginx to work with lets encrypt. But they all talk about installing the certificates from the command line and then setting the configuration file in Nginx to use reverse proxy.

I am not sure how to proceed, I think if I run Auto SSL for lets encrypt from the command line it might cause issues with the one installed through WHM. I have tried just adding just the nginx config part from here https://www.nginx.com/blog/using-free-ssltls-certificates-from-lets-encrypt-with-nginx/ but it does not seem to work and I guess that is because I have not run certs from the command line.

Any ideas on how to make this work with WHM?

As I said all working before Varnish was installed.

1 Like

Hi @gopygrad,

Welcome to Let's Encrypt forum!
I haven't use cPanel in a while so I did some research on how Vanish works with cPanel. Unfortunately, I don't think I could help you with this because cPanel didn't officially support Vanish. Link: https://forums.cpanel.net/threads/easyapache-4-varnish-ssl.676445/.
Because cPanel developed AutoSSL, so if they do not integrate Vanish with their EasyApache (or the newer software names) there might be some issues that need specifc diagnosis from their devs.

Tagging @griffin and @_az to see if they have a solution.

1 Like

Thank you. I decided to remove varnish but next issue was running cloudflare. So Im changing back to paid certs.

If you (and your clients) are using Cloudflare, you might want to consider using their "Origin SSL".
Beside Let's Encrypt, you can also use cPanel's AutoSSL CA, which might offer you more validation options.

Best of luck!

1 Like

Welcome to the Let's Encrypt Community :slightly_smiling_face:

Sorry I couldn't get back here in time. I concur with @stevenzhu's suggestions. Hopefully these will help:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.