From 4a123b6f4a2ece850175cc4402fc30326ae17075 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Fri, 12 Jan 2024 21:26:09 -0500 Subject: add static site --- roles/webservers/files/levi/http.static.simponic.xyz.conf | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 roles/webservers/files/levi/http.static.simponic.xyz.conf (limited to 'roles/webservers/files/levi/http.static.simponic.xyz.conf') diff --git a/roles/webservers/files/levi/http.static.simponic.xyz.conf b/roles/webservers/files/levi/http.static.simponic.xyz.conf new file mode 100644 index 0000000..89b725f --- /dev/null +++ b/roles/webservers/files/levi/http.static.simponic.xyz.conf @@ -0,0 +1,13 @@ +server { + listen 80; + server_name static.simponic.xyz; + + location /.well-known/acme-challenge { + root /var/www/letsencrypt; + try_files $uri $uri/ =404; + } + + location / { + rewrite ^ https://static.simponic.xyz$request_uri? permanent; + } +} -- cgit v1.2.3-70-g09d2