let encrypt – Configure Apache2 on pi3 with certbot and letsencrypt

I'm running Raspbian GNU / Linux 9 (extension) on a Raspberry Pi3. I have Apache2 that I want to use to connect a domain to the Gitea server on the same raspberry, port 3000.

I've apache redirect http to the Gitea server, no problem.
I've tried using certbot to upgrade http to https, but when I run certbot "sudo certbot –apache", I get:

  • Could not install certificate
  • Congratulations! Your certificate and your channel have been registered in:

If I understood correctly, I managed to create the certificates but Apache did not modify the configuration of VirtualHosts.

I've tried to configure them myself (I already have it installed on another Ubuntu server), but to no avail. Looking for I found that not one person has the same configuration. Here is what I have now:


  ServerName web.page.com

SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/web.page.com/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/web.page.com/privkey.pem
SSLCertificateChanFile /etc/letsencrypt/live/web.page.com/chain.pem

ProxyPreserveHost On
ProxyPassMatch ^ / . Well  -known!

ProxyPass / http: // localhost: 3000 /
ProxyPassReverse / http: // localhost: 3000 /
DocumentRoot / var / certif / gitea

The Apache2 error log says nothing, displays:

[Sat Apr 27 11:03:43.650383 2019] [mpm_event:notice] [pid 20569:tid 1996288240]    AH00491: caught SIGTERM, stopping
[Sat Apr 27 11:03:43.829615 2019] [mpm_event:notice] [pid 22424:tid 1996398832]    AH00489: Apache / 2.4.25 (Raspbian) configured - resume normal operations
[Sat Apr 27 11:03:43.830084 2019] [core:notice] [pid 22424:tid 1996398832]    AH00094: Command line: / usr / sbin / apache2 & # 39;

My knowledge is missing a bit, and somebody has changed since the last time I configured it. All tracks on what I could try are welcome!