Added some default configuration files.
authorFredrik Tolf <fredrik@dolda2000.com>
Mon, 13 Sep 2010 05:04:56 +0000 (07:04 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Mon, 13 Sep 2010 05:04:56 +0000 (07:04 +0200)
etc/ashd/apache-compat [new file with mode: 0644]
etc/ashd/dirplex.d/cgi.rc [new file with mode: 0644]
etc/ashd/dirplex.d/php.rc [new file with mode: 0644]
etc/ashd/dirplex.d/send.rc [new file with mode: 0644]
etc/ashd/dirplex.rc [new file with mode: 0644]

diff --git a/etc/ashd/apache-compat b/etc/ashd/apache-compat
new file mode 100644 (file)
index 0000000..5d55f81
--- /dev/null
@@ -0,0 +1,3 @@
+match
+  default
+  fork sendfile
diff --git a/etc/ashd/dirplex.d/cgi.rc b/etc/ashd/dirplex.d/cgi.rc
new file mode 100644 (file)
index 0000000..a913518
--- /dev/null
@@ -0,0 +1,6 @@
+fchild stdcgi
+  exec callcgi
+
+match
+  filename *.cgi
+  handler stdcgi
diff --git a/etc/ashd/dirplex.d/php.rc b/etc/ashd/dirplex.d/php.rc
new file mode 100644 (file)
index 0000000..bf0ecbe
--- /dev/null
@@ -0,0 +1,6 @@
+fchild php
+  exec callcgi -p php-cgi
+
+match
+  filename *.php
+  handler php
diff --git a/etc/ashd/dirplex.d/send.rc b/etc/ashd/dirplex.d/send.rc
new file mode 100644 (file)
index 0000000..5e00547
--- /dev/null
@@ -0,0 +1,17 @@
+match
+  filename *.html
+  fork sendfile -c text/html
+match
+  filename *.css
+  fork sendfile -c text/css
+
+# Image types
+match
+  filename *.gif
+  fork sendfile -c image/gif
+match
+  filename *.png
+  fork sendfile -c image/png
+match
+  filename *.jpg *.jpeg
+  fork sendfile -c image/jpeg
diff --git a/etc/ashd/dirplex.rc b/etc/ashd/dirplex.rc
new file mode 100644 (file)
index 0000000..9d46abd
--- /dev/null
@@ -0,0 +1,3 @@
+include dirplex.d/*.rc
+
+index-file index