
Estou tentando converter este nginx
bloco de configuração para Apache 2.4:
http {
...
server {
...
location ~ ^/\.well-known/acme-challenge/([-_a-zA-Z0-9]+)$ {
default_type text/plain;
return 200 "$1.6fXAG9VyG0IahirPEU2ZerUtItW2DHzDzD9wZaEKpqd";
}
...
}
}
O que tenho neste momento é:
<LocationMatch ^/\.well-known/acme-challenge/([-_a-zA-Z0-9]+)$>
RewriteEngine On
RewriteRule ^/.*/$ $1.6fXAG9VyG0IahirPEU2ZerUtItW2DHzDzD9wZaEKpqd [R=200]
</LocationMatch>
Mas definitivamente não está funcionando.
O que estou tentando alcançar? Vamos criptografar o modo sem estado com Apache:https://github.com/Neilpang/acme.sh/wiki/Stateless-Mode