I ran this command: ./letsencrypt-auto certonly --webroot -w /opt/bitnami/apps/phabricator/htdocs/webroot -d forge.deafmade.com
It produced this output: "Failed authorization procedure. forge.deafmade.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from ~/.well-known/acme-challenge/_1eWR8y1HU_z1POvexWpohJmFCp_Mts1GVA2s6ZeJ0k: "Login to Phabricator<meta name=“viewport” content=“width=device”
My web server is (include version): Apache 2.4.25
The operating system my web server runs on is (include version): Debian 8
My hosting provider, if applicable, is: Google Compute Engine (Bitnami Phabricator Stack)
I can login to a root shell on my machine (yes or no, or I don’t know): Yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel): No
I added .well-known/acme-challenge/test file and it shows 404 when I try to visit it.
My thought is that maybe the one in the httpd-app.conf also needs the same exclusion (with the RewriteCond that you added to the httpd-prefix.conf). I don’t know enough about mod_rewrite to know if it will work if you just add a second
RewriteCond %{REQUEST_URI} !^/.well-known
to httpd-app.conf after the existing RewriteCond line there, but that’s my intuition. (The question is whether RewriteCond directives are cumulative and all have to be satisfied for a following rewrite to occur, or whether they’re interpreted in some other way.)
Maybe you could try that, and, if it doesn’t work, you could either contact the person who wrote the tutorial that you followed (to ask for it to be updated to include suggested changes to httpd-app.conf too), or else we can edit the subject of this forum thread to ask other people with more mod_rewrite experience to come help with their suggestions.
Hmmm I added that second /.well-known above the existing RewriteCond in the httpd-app.conf, then restarted Apache to run the certbot again. I got the same error. I guess it couldn’t hurt to contact the author of that tutorial to see if he has any thoughts.