[Solved] Invalid response 403 forbidden

Hi,

Finally found where the issue come from.

certbot auto create the following challenge config :

<Directory /var/lib/letsencrypt/http_challenges>
        Require all granted
    </Directory>
    <Location /.well-known/acme-challenge>
        Require all granted
    </Location>

And modify the virtual host config adding this :

Include /etc/apache2/le_http_01_challenge_post.conf 

the issue is that my DocumentRoot is not set in my vhost as :

 /var/lib/letsencrypt/http_challenges

As I’m on a reverse proxy I don’t mind to set it to anything as all requests are then redirected to the real server, so I just added this to my vhost conf and it worked like a charm:

    DocumentRoot /var/lib/letsencrypt/http_challenges
    <Directory /var/lib/letsencrypt/http_challenges>
            Allow from All
    </Directory>

May be something has changed in the last certbot-auto script as I never had to do this before.
Hope It’s clear enough and will help someone else.

1 Like