From e1e2510f3cc96611f1a83d5692054a5a6476b3ef Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Wed, 30 Oct 2002 15:53:30 +0000 Subject: apache: Add vhosts.d, include.d and some example config snippets. --- apache/vhosts.d/00Virtual | 17 +++++++++++++++++ apache/vhosts.d/0DEFAULT | 17 +++++++++++++++++ apache/vhosts.d/README | 15 +++++++++++++++ apache/vhosts.d/admin | 43 +++++++++++++++++++++++++++++++++++++++++++ apache/vhosts.d/kiosk | 7 +++++++ apache/vhosts.d/mail | 13 +++++++++++++ 6 files changed, 112 insertions(+) create mode 100644 apache/vhosts.d/00Virtual create mode 100644 apache/vhosts.d/0DEFAULT create mode 100644 apache/vhosts.d/README create mode 100644 apache/vhosts.d/admin create mode 100644 apache/vhosts.d/kiosk create mode 100644 apache/vhosts.d/mail (limited to 'apache/vhosts.d') diff --git a/apache/vhosts.d/00Virtual b/apache/vhosts.d/00Virtual new file mode 100644 index 0000000..9a7bf64 --- /dev/null +++ b/apache/vhosts.d/00Virtual @@ -0,0 +1,17 @@ +DocumentRoot /home + + + AllowOverride FileInfo AuthConfig Limit + Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec + + Order allow,deny + Allow from all + + + Order deny,allow + Deny from all + + + +UseCanonicalName Off +NameVirtualHost * diff --git a/apache/vhosts.d/0DEFAULT b/apache/vhosts.d/0DEFAULT new file mode 100644 index 0000000..364a825 --- /dev/null +++ b/apache/vhosts.d/0DEFAULT @@ -0,0 +1,17 @@ + +ServerName 107b.dk +ServerAlias www +ServerAdmin webmaster@107b.dk +DocumentRoot /home/web/websites/107b.dk + +ScriptAlias /cgi-bin/ /home/web/webscripts/107b.dk/ +User web +Group web + + + +ServerName www.107b.dk +RewriteEngine On +RewriteRule / http://107b.dk/ [R] +TransferLog /dev/null + diff --git a/apache/vhosts.d/README b/apache/vhosts.d/README new file mode 100644 index 0000000..a07436e --- /dev/null +++ b/apache/vhosts.d/README @@ -0,0 +1,15 @@ +# These are example files for Apache virtual hosts. +# They need a little tweaking (at least change the domainname). +# +# Add this line just below "Section 3: Virtual hosts" in httpd.conf: +# +# Include vhosts.d/ +# +# Some of the stuff is tied to the concept of recompiling suexec to have +# the files located below /home instead of /var/www (this - among other +# issues - allows for putting ftp access within a chroot and still allow +# web designers into their websites). +# +# TODO: +# * Write these as m4 scripts +# * automate using CFEngine diff --git a/apache/vhosts.d/admin b/apache/vhosts.d/admin new file mode 100644 index 0000000..bf1d0cb --- /dev/null +++ b/apache/vhosts.d/admin @@ -0,0 +1,43 @@ + +ServerName admin.107b.dk +ServerAlias admin +ServerAdmin webmaster@107b.dk +DocumentRoot /home/web/websites/admin.107b.dk + +Alias /eskuel/ /var/www/eskuel/ + +Alias /dav/ /var/www/dav/ + + AuthShadow On + AuthName "WebDAV" + AuthType Basic + AllowOverride None + Dav On + Options Indexes + Order allow,deny + Allow from all + + Allow from all + + +# Deny from all + Allow from all + + require valid-user + + +Alias /put/ /var/www/put/ + + EnablePut On +# EnableDelete Off + umask 007 +# + AuthShadow On + AuthName "http PUT" + AuthType Basic + require valid-user +# + + +Include /etc/phpmyadmin/apache.conf + diff --git a/apache/vhosts.d/kiosk b/apache/vhosts.d/kiosk new file mode 100644 index 0000000..8de507b --- /dev/null +++ b/apache/vhosts.d/kiosk @@ -0,0 +1,7 @@ + +ServerName kiosk.107b.dk +ServerAlias kiosk +RewriteEngine On +RewriteRule / http://lab.107b.dk/ [R] +TransferLog /dev/null + diff --git a/apache/vhosts.d/mail b/apache/vhosts.d/mail new file mode 100644 index 0000000..394e4ea --- /dev/null +++ b/apache/vhosts.d/mail @@ -0,0 +1,13 @@ + + ServerName mail.107b.dk + ServerAlias mail + ServerAdmin webmaster@107b.dk + DocumentRoot /home/web/websites/mail.107b.dk + +Include /etc/horde/apache.conf +Include /etc/imp/apache.conf +Include /etc/squirrelmail/apache.conf + +Alias /postaci/ /var/www/postaci/ + + -- cgit v1.2.3