diff options
author | rsiddharth <s@ricketyspace.net> | 2019-11-11 21:03:03 -0500 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2019-11-11 21:03:03 -0500 |
commit | f46cccf3e048ed1435e3f8113bb069b204201961 (patch) | |
tree | fdc032da1ba047baf4a22f9129ee77e442dc9dc5 /etc/httpd.conf | |
parent | aa6ad11a8d55b028923a5440e0d2617a04601267 (diff) |
Add etc/httpd.conf
Diffstat (limited to 'etc/httpd.conf')
-rw-r--r-- | etc/httpd.conf | 22 |
1 files changed, 22 insertions, 0 deletions
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 + } +} |