From f46cccf3e048ed1435e3f8113bb069b204201961 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Mon, 11 Nov 2019 21:03:03 -0500 Subject: Add etc/httpd.conf --- etc/httpd.conf | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 etc/httpd.conf (limited to 'etc') diff --git a/etc/httpd.conf b/etc/httpd.conf new file mode 100644 index 0000000..a8d3907 --- /dev/null +++ b/etc/httpd.conf @@ -0,0 +1,22 @@ +server "nfsw.dingy.space" { + listen on * port 80 + location "/.well-known/acme-challenge/*" { + root "/acme" + request strip 2 + } + location * { + block return 302 "https://$HTTP_HOST$REQUEST_URI" + } +} + +server "nfsw.dingy.space" { + listen on * tls port 443 + tls { + certificate "/etc/ssl/nfsw.dingy.space.fullchain.pem" + key "/etc/ssl/private/nfsw.dingy.space.key" + } + location "/.well-known/acme-challenge/*" { + root "/acme" + request strip 2 + } +} -- cgit v1.2.3