X-Git-Url: https://git.rapsys.eu/acme/blobdiff_plain/d23d5963bf50f434805243743d67fb3c39c916cf..8232cc7e880b10720e10a634f70fbc1578960bff:/www/acme.conf?ds=sidebyside
diff --git a/www/acme.conf b/www/acme.conf
new file mode 100644
index 0000000..fbb7772
--- /dev/null
+++ b/www/acme.conf
@@ -0,0 +1,22 @@
+# Acme configuration
+
+ # Ignore htaccess
+ AllowOverride None
+
+ # Allow follow symlinks (required by php or rewrite)
+ Options FollowSymLinks
+
+ # Allow from all
+ Require all granted
+
+
+
+ # Start rewrite engine
+ RewriteEngine on
+
+ # Only if https is disabled
+ RewriteCond %{HTTPS} off
+
+ # Rewrite acme uri on php script
+ RewriteRule /\.well\-known/acme\-challenge/([-_a-zA-Z0-9]+) /var/www/acme/acme-challenge.php?key=$1 [L]
+