3 server_name example.com;
7 location ~ ^/.well-known/acme-challenge {
8 rewrite ^/.well-known/acme-challenge/(.*)$ /acme-challenge.php?key=$1 last;
11 location ~ ^/acme-challenge\.php$ {
12 fastcgi_pass unix:/tmp/php5-fpm.sock;
13 include fastcgi_params;
17 return 301 https://$server_name$request_uri;