summaryrefslogtreecommitdiff
path: root/apache/include.d
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2002-10-30 15:53:30 +0000
committerJonas Smedegaard <dr@jones.dk>2002-10-30 15:53:30 +0000
commite1e2510f3cc96611f1a83d5692054a5a6476b3ef (patch)
tree0c8c3824f6c6d852c810b6dac6395b7b34f459f1 /apache/include.d
parent8db4df3b64aac3524dc731f5f354edb6803636df (diff)
apache: Add vhosts.d, include.d and some example config snippets.
Diffstat (limited to 'apache/include.d')
-rw-r--r--apache/include.d/README8
-rw-r--r--apache/include.d/htfiles4
-rw-r--r--apache/include.d/index.anything3
-rw-r--r--apache/include.d/log-vhosts4
4 files changed, 19 insertions, 0 deletions
diff --git a/apache/include.d/README b/apache/include.d/README
new file mode 100644
index 0000000..4fc9840
--- /dev/null
+++ b/apache/include.d/README
@@ -0,0 +1,8 @@
+# These are example files for misc. tweaks to Apache.
+#
+# Add this line just above "Section 3: Virtual hosts" in httpd.conf:
+#
+# Include includes.d/
+#
+# TODO:
+# * automate using CFEngine
diff --git a/apache/include.d/htfiles b/apache/include.d/htfiles
new file mode 100644
index 0000000..52c50c8
--- /dev/null
+++ b/apache/include.d/htfiles
@@ -0,0 +1,4 @@
+<Files ~ "^\.ht">
+ Order allow,deny
+ Deny from all
+</Files>
diff --git a/apache/include.d/index.anything b/apache/include.d/index.anything
new file mode 100644
index 0000000..972639b
--- /dev/null
+++ b/apache/include.d/index.anything
@@ -0,0 +1,3 @@
+<IfModule mod_dir.c>
+ DirectoryIndex index.html index.htm index.shtml index.cgi index.php home.htm
+</IfModule>
diff --git a/apache/include.d/log-vhosts b/apache/include.d/log-vhosts
new file mode 100644
index 0000000..de2ae41
--- /dev/null
+++ b/apache/include.d/log-vhosts
@@ -0,0 +1,4 @@
+LogFormat "[ %v %{%Y %m %d}t ] %h %l %u %t \"%r\" %>s %b" CustomLog
+LogFormat "[ %v %{%Y %m %d}t ] %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" CustomLog_combined
+#CustomLog "|/usr/local/bin/parselog" CustomLog
+CustomLog "|/usr/local/bin/parselog" CustomLog_combined