From 98450dcb5690df65c5ffda008a1831c06ea98796 Mon Sep 17 00:00:00 2001 From: andreas Date: Tue, 29 Apr 2008 08:29:21 +0000 Subject: more default files --- files/modules.d/10_mod_mem_cache.conf | 10 ++++++ files/modules.d/40_mod_ssl.conf | 65 +++++++++++++++++++++++++++++++++++ files/modules.d/45_mod_dav.conf | 56 ++++++++++++++++++++++++++++++ files/modules.d/46_mod_ldap.conf | 29 ++++++++++++++++ files/modules.d/70_mod_php5.conf | 18 ++++++++++ 5 files changed, 178 insertions(+) create mode 100644 files/modules.d/10_mod_mem_cache.conf create mode 100644 files/modules.d/40_mod_ssl.conf create mode 100644 files/modules.d/45_mod_dav.conf create mode 100644 files/modules.d/46_mod_ldap.conf create mode 100644 files/modules.d/70_mod_php5.conf (limited to 'files') diff --git a/files/modules.d/10_mod_mem_cache.conf b/files/modules.d/10_mod_mem_cache.conf new file mode 100644 index 0000000..ad7fa9e --- /dev/null +++ b/files/modules.d/10_mod_mem_cache.conf @@ -0,0 +1,10 @@ + +# 128MB cache for objects < 2MB +CacheEnable mem / +MCacheSize 131072 +MCacheMaxObjectCount 1000 +MCacheMinObjectSize 1 +MCacheMaxObjectSize 2048 + + +# vim: ts=4 filetype=apache diff --git a/files/modules.d/40_mod_ssl.conf b/files/modules.d/40_mod_ssl.conf new file mode 100644 index 0000000..331783a --- /dev/null +++ b/files/modules.d/40_mod_ssl.conf @@ -0,0 +1,65 @@ +# Note: The following must must be present to support +# starting without SSL on platforms with no /dev/random equivalent +# but a statically compiled-in mod_ssl. + +SSLRandomSeed startup builtin +SSLRandomSeed connect builtin + + + + +# This is the Apache server configuration file providing SSL support. +# It contains the configuration directives to instruct the server how to +# serve pages over an https connection. For detailing information about these +# directives see + +# Do NOT simply read the instructions in here without understanding +# what they do. They're here only as hints or reminders. If you are unsure +# consult the online docs. You have been warned. + +## Pseudo Random Number Generator (PRNG): +# Configure one or more sources to seed the PRNG of the SSL library. +# The seed data should be of good random quality. +# WARNING! On some platforms /dev/random blocks if not enough entropy +# is available. This means you then cannot use the /dev/random device +# because it would lead to very long connection times (as long as +# it requires to make more entropy available). But usually those +# platforms additionally provide a /dev/urandom device which doesn't +# block. So, if available, use this one instead. Read the mod_ssl User +# Manual for more details. +#SSLRandomSeed startup file:/dev/random 512 +#SSLRandomSeed startup file:/dev/urandom 512 +#SSLRandomSeed connect file:/dev/random 512 +#SSLRandomSeed connect file:/dev/urandom 512 + +## SSL Global Context: +# All SSL configuration in this context applies both to the main server and +# all SSL-enabled virtual hosts. + +# Some MIME-types for downloading Certificates and CRLs + + AddType application/x-x509-ca-cert .crt + AddType application/x-pkcs7-crl .crl + + +## Pass Phrase Dialog: +# Configure the pass phrase gathering process. The filtering dialog program +# (`builtin' is a internal terminal dialog) has to provide the pass phrase on +# stdout. +SSLPassPhraseDialog builtin + +## Inter-Process Session Cache: +# Configure the SSL Session Cache: First the mechanism to use and second the +# expiring timeout (in seconds). +#SSLSessionCache dbm:/var/run/ssl_scache +SSLSessionCache shmcb:/var/run/ssl_scache(512000) +SSLSessionCacheTimeout 300 + +## Semaphore: +# Configure the path to the mutual exclusion semaphore the SSL engine uses +# internally for inter-process synchronization. +SSLMutex file:/var/run/ssl_mutex + + + +# vim: ts=4 filetype=apache diff --git a/files/modules.d/45_mod_dav.conf b/files/modules.d/45_mod_dav.conf new file mode 100644 index 0000000..b15ca01 --- /dev/null +++ b/files/modules.d/45_mod_dav.conf @@ -0,0 +1,56 @@ + + + +DavLockDB "/var/lib/dav/lockdb" + +# The following example gives DAV write access to a directory called +# "uploads" under the ServerRoot directory. + + + +Alias /uploads "/var/www/uploads" + + + Dav On + + AuthType Digest + AuthName DAV-upload + + # You can use the htdigest program to create the password database: + # htdigest -c "/var/www/.htpasswd-dav" DAV-upload admin + AuthUserFile "/var/www/.htpasswd-dav" + + # Allow access from any host + Order allow,deny + Allow from all + + # Allow universal read-access, but writes are restricted + # to the admin user. + + require user admin + + + + + + + + + +# The following directives disable redirects on non-GET requests for +# a directory that does not include the trailing slash. This fixes a +# problem with several clients that do not appropriately handle +# redirects for folders with DAV methods. + +BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully +BrowserMatch "MS FrontPage" redirect-carefully +BrowserMatch "^WebDrive" redirect-carefully +BrowserMatch "^WebDAVFS/1.[012345]" redirect-carefully +BrowserMatch "^gnome-vfs/1.0" redirect-carefully +BrowserMatch "^XML Spy" redirect-carefully +BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully + + + + +# vim: ts=4 filetype=apache diff --git a/files/modules.d/46_mod_ldap.conf b/files/modules.d/46_mod_ldap.conf new file mode 100644 index 0000000..837bc6e --- /dev/null +++ b/files/modules.d/46_mod_ldap.conf @@ -0,0 +1,29 @@ +# Examples below are taken from the online documentation +# Refer to: +# http://localhost/manual/mod/mod_ldap.html +# http://localhost/manual/mod/mod_auth_ldap.html + + +LDAPSharedCacheSize 200000 +LDAPCacheEntries 1024 +LDAPCacheTTL 600 +LDAPOpCacheEntries 1024 +LDAPOpCacheTTL 600 + + + SetHandler ldap-status + Order deny,allow + Deny from all + Allow from 127.0.0.1 + + + + + + + #AuthLDAPURL ldap://ldap1.airius.com:389/ou=People, o=Airius?uid?sub?(objectClass=*) + #require valid-user + + + +# vim: ts=4 filetype=apache diff --git a/files/modules.d/70_mod_php5.conf b/files/modules.d/70_mod_php5.conf new file mode 100644 index 0000000..a825435 --- /dev/null +++ b/files/modules.d/70_mod_php5.conf @@ -0,0 +1,18 @@ + + # Load the module first + + LoadModule php5_module modules/libphp5.so + + + # Set it to handle the files + + AddType application/x-httpd-php .php + AddType application/x-httpd-php .phtml + AddType application/x-httpd-php .php3 + AddType application/x-httpd-php .php4 + AddType application/x-httpd-php .php5 + AddType application/x-httpd-php-source .phps + + + DirectoryIndex index.php index.phtml + -- cgit v1.2.3