]> Raphaƫl G. Git Repositories - acme/blobdiff - www/acme.apache.conf
Add nginx example configuration
[acme] / www / acme.apache.conf
diff --git a/www/acme.apache.conf b/www/acme.apache.conf
new file mode 100644 (file)
index 0000000..8ff2241
--- /dev/null
@@ -0,0 +1,22 @@
+# Acme configuration
+<Directory /usr/share/acme>
+       # Ignore htaccess
+       AllowOverride None
+
+       # Allow follow symlinks (required by php or rewrite)
+       Options FollowSymLinks
+
+       # Allow from all
+       Require all granted
+</Directory>
+
+<IfModule rewrite_module>
+       # 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]+) /usr/share/acme/acme-challenge.php?key=$1 [L]
+</IfModule>