diff options
author | Bryan Bishop <kanzure@gmail.com> | 2010-10-29 19:48:20 -0500 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2010-10-29 19:48:20 -0500 |
commit | 27a622d8691f16b82b0afae69f9f4fedd15fe6a3 (patch) | |
tree | 788eee46016f528f06491556b31d0e7277b1e8ea /deploy/etc/apache2/sites-available | |
parent | 7786ce2a332b0eba4b3ca7c57f906a32e8715da3 (diff) | |
download | piny-code-27a622d8691f16b82b0afae69f9f4fedd15fe6a3.tar.gz piny-code-27a622d8691f16b82b0afae69f9f4fedd15fe6a3.zip |
Moved deployment-specific files and configuration to deploy/ until someone fixes the debian packages.
Diffstat (limited to 'deploy/etc/apache2/sites-available')
-rw-r--r-- | deploy/etc/apache2/sites-available/001-piny | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/deploy/etc/apache2/sites-available/001-piny b/deploy/etc/apache2/sites-available/001-piny new file mode 100644 index 0000000..6e5c3fd --- /dev/null +++ b/deploy/etc/apache2/sites-available/001-piny @@ -0,0 +1,63 @@ +<VirtualHost *:80> + ServerName piny.be + + DocumentRoot /srv/www/piny.be + + <Directory /> + Options Indexes FollowSymLinks MultiViews + AllowOverride None + </Directory> + + RedirectMatch 301 ^/$ http://piny.be/piny-web/ +</VirtualHost> + +<VirtualHost *:80> + ServerName www.piny.be + RedirectMatch 301 (.*) http://piny.be$1 +</VirtualHost> + +<VirtualHost *:443> + ServerName piny.be + DocumentRoot /srv/www/piny.be + + <Directory /> + Options Indexes FollowSymLinks MultiViews + AllowOverride None + </Directory> + + RedirectMatch 301 ^/$ http://piny.be/piny-web/ + + SSLEngine On + SSLCertificateFile /etc/ssl/private/secure.piny.be.pem + SSLCACertificateFile /etc/ssl/private/GandiStandardSSLCA.pem +</VirtualHost> + +<VirtualHost *:80> + ServerName secure.piny.be + RedirectMatch 301 (.*) https://secure.piny.be$1 +</VirtualHost> + +<VirtualHost *:443> + ServerName secure.piny.be + DocumentRoot /srv/www/secure.piny.be + + <Directory "/srv/www/secure.piny.be"> + SSLRequireSSL + SetHandler cgi-script + AllowOverride None + Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch + </Directory> + + ScriptAlias /cgit /usr/lib/cgi-bin/cgit.cgi + + Include /etc/apache2/piny-enabled + + SSLEngine On + SSLCertificateFile /etc/ssl/private/secure.piny.be.pem + SSLCACertificateFile /etc/ssl/private/GandiStandardSSLCA.pem +</VirtualHost> + +<VirtualHost *:80> + ServerName piny.svcs.cs.pdx.edu + RedirectMatch 301 (.*) http://piny.be$1 +</VirtualHost> |