summaryrefslogtreecommitdiff
path: root/bin/contrib/rc-httpd/handlers/static-or-index
diff options
context:
space:
mode:
authorglenda <glenda@9front.local>2020-11-15 15:13:27 +0000
committerglenda <glenda@9front.local>2020-11-15 15:13:27 +0000
commit39318169e0b50551db511851829f9337c5fa6313 (patch)
tree65a0ef5c1da9677532fa8105293d017919473057 /bin/contrib/rc-httpd/handlers/static-or-index
Import site to git
Diffstat (limited to 'bin/contrib/rc-httpd/handlers/static-or-index')
-rwxr-xr-xbin/contrib/rc-httpd/handlers/static-or-index5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/contrib/rc-httpd/handlers/static-or-index b/bin/contrib/rc-httpd/handlers/static-or-index
new file mode 100755
index 0000000..f0904f8
--- /dev/null
+++ b/bin/contrib/rc-httpd/handlers/static-or-index
@@ -0,0 +1,5 @@
+#!/bin/rc
+if(~ $PATH_INFO */)
+ exec dir-index $params
+if not
+ exec serve-static