Hi,
I faced an issue that I am using Lets Encrypt, which is set to automatically renew on schedule. It failed to automatically renew and when I looked at the logs I could see the http challenge was failing because it couldnt see the folder and file used by Lets Encrypt to approve the renewal. The directory & file that needs to be accessable found under the following folder: <espocrm-domain>/.well-known/acme-challenge/
I am using Ubuntu 18.04 with Apache server.
Upon investigation I found that the EspoCRM htaccess file blocks access to the directory that Lets Encrypt uses. I therefore added a htaccess rule to make an exception and allow Lets Encrypt to see the file. However, a few months later the renewal failed again and I realised that this happened after I updated Espo. So I assume the htaccess file got modified when I updated Espo.
For now the SSL can renew if the following is inserted in the htaccess file:
I would like to ask the community if inserting the above htaccess code as the first RewriteRule in the htaccess file is going to work fine without creating any other issues?
I faced an issue that I am using Lets Encrypt, which is set to automatically renew on schedule. It failed to automatically renew and when I looked at the logs I could see the http challenge was failing because it couldnt see the folder and file used by Lets Encrypt to approve the renewal. The directory & file that needs to be accessable found under the following folder: <espocrm-domain>/.well-known/acme-challenge/
I am using Ubuntu 18.04 with Apache server.
Upon investigation I found that the EspoCRM htaccess file blocks access to the directory that Lets Encrypt uses. I therefore added a htaccess rule to make an exception and allow Lets Encrypt to see the file. However, a few months later the renewal failed again and I realised that this happened after I updated Espo. So I assume the htaccess file got modified when I updated Espo.
For now the SSL can renew if the following is inserted in the htaccess file:
Code:
RewriteRule ^\.well-known\/acme-challenge\/ - [L]
Comment