]> Raphaƫl G. Git Repositories - acme/blob - www/acme.nginx.conf
Version 1.3
[acme] / www / acme.nginx.conf
1 server {
2 listen 80;
3 server_name example.com;
4
5 root /usr/share/acme;
6
7 location ~ ^/.well-known/acme-challenge {
8 rewrite ^/.well-known/acme-challenge/(.*)$ /acme-challenge.php?key=$1 last;
9 }
10
11 location ~ ^/acme-challenge\.php$ {
12 fastcgi_pass unix:/tmp/php5-fpm.sock;
13 include fastcgi_params;
14 }
15
16 location / {
17 return 301 https://$server_name$request_uri;
18 }
19 }