In the case you have a website using Apache only (maybe with PHP) that is in:
/home/www/mywebsite/
/home/www/mywebsite/index.php
/home/www/mywebsite/style.css
then, it's easy to set certbot
's --webroot-path
:
./certbot-auto certonly --webroot --webroot-path /home/www/mywebsite/
--domain example.com --domain www.example.com --email a@example.com
Question: when using a website run by NodeJS or Python Flask or Bottle, linked to Apache either with WSGI (mod_wsgi) or simple proxying (I know the latter is not recommended in the case Python)
RewriteEngine On
RewriteRule /(.*) http://localhost:5000/$1 [P,L]
what should --webroot-path
be?
More specifically, if we have:
/home/www/mywebsite/ (Pyton example)
/home/www/mywebsite/myapp.py
/home/www/mywebsite/myapp.sqlite
/home/www/mywebsite/static/style.css
...
or
/home/www/mywebsite/ (NodeJS example)
/home/www/mywebsite/myapp.js
/home/www/mywebsite/myapp.sqlite
/home/www/mywebsite/static/style.css
...
then it doesn't make sense to choose --webroot-path
as /home/www/mywebsite/
, right?
Indeed, I don't want any other program/script like letsencrypt certbot to fiddle with my .py files.
Anyway, what does --webroot-path
in certbot
do? Will files there be analyzed, parsed?