Mongrel and SSL

SYSTEM INFORMATION
OS type and version Ubuntu 20.04
Webmin version 1.994
Virtualmin version 7.1.pro-1
Related packages Nodejs

I have nodejs running successfully using the Virtualmin install script Node.js. When I try to install Letsencrypt for this site it fails but on other domains I tested on the same server Letsencrypt works fine. I suspect since the connection is being proxied using mongrel3000, the Letsencrypt validation process fails to complete. Has anyone gotten this to work successfully using Letsencrypt and how did you do it?

Thank you.

Hello,

This will be fixed in Virtualmin 7.2 and above for all newly created websites.

Meanwhile, you can manually edit web server config and add for Apache config:

ProxyPass /.well-known !

… somewhere above any other ProxyPass records.

For Nginx it would be the same but the record should be:

location ^~ /.well-known/ {
	try_files "$uri" /;
}

Thank you so much for the quick response Ilia! Letsencrypt is working successfully after adding the solution you provided per my screen shot.

Screen Shot 2022-07-27 at 9.07.04 AM

1 Like

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