From a93305567fc18edd18fe52ec64a29740b4ed2d88 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Mon, 13 Sep 2010 07:04:56 +0200 Subject: [PATCH] Added some default configuration files. --- etc/ashd/apache-compat | 3 +++ etc/ashd/dirplex.d/cgi.rc | 6 ++++++ etc/ashd/dirplex.d/php.rc | 6 ++++++ etc/ashd/dirplex.d/send.rc | 17 +++++++++++++++++ etc/ashd/dirplex.rc | 3 +++ 5 files changed, 35 insertions(+) create mode 100644 etc/ashd/apache-compat create mode 100644 etc/ashd/dirplex.d/cgi.rc create mode 100644 etc/ashd/dirplex.d/php.rc create mode 100644 etc/ashd/dirplex.d/send.rc create mode 100644 etc/ashd/dirplex.rc diff --git a/etc/ashd/apache-compat b/etc/ashd/apache-compat new file mode 100644 index 0000000..5d55f81 --- /dev/null +++ b/etc/ashd/apache-compat @@ -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 index 0000000..a913518 --- /dev/null +++ b/etc/ashd/dirplex.d/cgi.rc @@ -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 index 0000000..bf0ecbe --- /dev/null +++ b/etc/ashd/dirplex.d/php.rc @@ -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 index 0000000..5e00547 --- /dev/null +++ b/etc/ashd/dirplex.d/send.rc @@ -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 index 0000000..9d46abd --- /dev/null +++ b/etc/ashd/dirplex.rc @@ -0,0 +1,3 @@ +include dirplex.d/*.rc + +index-file index -- 2.11.0