diff options
Diffstat (limited to 'apache/include.d')
-rw-r--r-- | apache/include.d/README | 8 | ||||
-rw-r--r-- | apache/include.d/htfiles | 4 | ||||
-rw-r--r-- | apache/include.d/index.anything | 3 | ||||
-rw-r--r-- | apache/include.d/log-vhosts | 4 |
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 |