Fix config generation
[acme] / www / acme.conf
1 # Acme configuration
2 <Directory /var/www/acme>
3 # Ignore htaccess
4 AllowOverride None
5
6 # Allow follow symlinks (required by php or rewrite)
7 Options FollowSymLinks
8
9 # Allow from all
10 Require all granted
11 </Directory>
12
13 <IfModule rewrite_module>
14 # Start rewrite engine
15 RewriteEngine on
16
17 # Only if https is disabled
18 RewriteCond %{HTTPS} off
19
20 # Rewrite acme uri on php script
21 RewriteRule /\.well\-known/acme\-challenge/([-_a-zA-Z0-9]+) /var/www/acme/acme-challenge.php?key=$1 [L]
22 </IfModule>