summary refs log tree commit diff
path: root/etc/httpd.conf
diff options
context:
space:
mode:
Diffstat (limited to 'etc/httpd.conf')
-rw-r--r--etc/httpd.conf24
1 files changed, 24 insertions, 0 deletions
diff --git a/etc/httpd.conf b/etc/httpd.conf
new file mode 100644
index 0000000..8d7cbc6
--- /dev/null
+++ b/etc/httpd.conf
@@ -0,0 +1,24 @@
+server "iwakura.page" {
+    listen on 127.0.0.1 port 8080
+    root "/htdocs/iwakura.page"
+    location "/.well-known/acme-challenge/*" {
+        root "/acme"
+        request strip 2
+    }
+
+    # block return 301 "https://$SERVER_NAME$REQUEST_URI"
+}
+
+server "www.iwakura.page" {
+    listen on 127.0.0.1 port 8080
+    block return 301 "https://iwakura.page$REQUEST_URI"
+}
+
+server "iwakura.page" {
+    listen on * port 80
+    location "/.well-known/acme-challenge/*" {
+        root "/acme"
+        request strip 2
+    }
+    block return 301 "https://iwakura.page$REQUEST_URI"
+}