From 90324d175d35a66c8316493dd12603ebdd087335 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Tue, 19 Sep 2017 13:45:49 +0200 Subject: [PATCH 1/1] Add nginx example configuration Rename apache config --- www/{acme.conf => acme.apache.conf} | 0 www/acme.nginx.conf | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+) rename www/{acme.conf => acme.apache.conf} (100%) create mode 100644 www/acme.nginx.conf diff --git a/www/acme.conf b/www/acme.apache.conf similarity index 100% rename from www/acme.conf rename to www/acme.apache.conf diff --git a/www/acme.nginx.conf b/www/acme.nginx.conf new file mode 100644 index 0000000..4d807d1 --- /dev/null +++ b/www/acme.nginx.conf @@ -0,0 +1,19 @@ +server { + listen 80; + server_name example.com; + + root /usr/share/acme; + + location ~ ^/.well-known/acme-challenge { + rewrite ^/.well-known/acme-challenge/(.*)$ /acme-challenge.php?key=$1 last; + } + + location ~ ^/acme-challenge\.php$ { + fastcgi_pass unix:/tmp/php5-fpm.sock; + include fastcgi_params; + } + + location / { + return 301 https://$server_name$request_uri; + } +} -- 2.41.1