diff options
Diffstat (limited to 'apache/vhosts.d')
-rw-r--r-- | apache/vhosts.d/00Virtual | 17 | ||||
-rw-r--r-- | apache/vhosts.d/0DEFAULT | 17 | ||||
-rw-r--r-- | apache/vhosts.d/README | 15 | ||||
-rw-r--r-- | apache/vhosts.d/admin | 43 | ||||
-rw-r--r-- | apache/vhosts.d/kiosk | 7 | ||||
-rw-r--r-- | apache/vhosts.d/mail | 13 |
6 files changed, 112 insertions, 0 deletions
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 + +<Directory /home/*/websites/*> + AllowOverride FileInfo AuthConfig Limit + Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec + <Limit GET POST OPTIONS PROPFIND> + Order allow,deny + Allow from all + </Limit> + <Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK> + Order deny,allow + Deny from all + </Limit> +</Directory> + +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 @@ +<VirtualHost *> +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 +</VirtualHost> + +<VirtualHost *> +ServerName www.107b.dk +RewriteEngine On +RewriteRule / http://107b.dk/ [R] +TransferLog /dev/null +</VirtualHost> 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 @@ +<VirtualHost *> +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/ +<Location /dav/> + AuthShadow On + AuthName "WebDAV" + AuthType Basic + AllowOverride None + Dav On + Options Indexes + Order allow,deny + Allow from all + <Limit HEAD GET POST OPTIONS PROPFIND> + Allow from all + </Limit> + <Limit MKCOL PUT DELETE LOCK UNLOCK COPY MOVE PROPPATCH> +# Deny from all + Allow from all + </Limit> + require valid-user +</Location> + +Alias /put/ /var/www/put/ +<Location /put/> + EnablePut On +# EnableDelete Off + umask 007 +# <Limit PUT> + AuthShadow On + AuthName "http PUT" + AuthType Basic + require valid-user +# </Limit> +</Location> + +Include /etc/phpmyadmin/apache.conf +</VirtualHost> 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 @@ +<VirtualHost *> +ServerName kiosk.107b.dk +ServerAlias kiosk +RewriteEngine On +RewriteRule / http://lab.107b.dk/ [R] +TransferLog /dev/null +</VirtualHost> 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 @@ +<VirtualHost *> + 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/ + +</VirtualHost> |