summaryrefslogtreecommitdiff
path: root/deploy/etc/apache2/sites-available
diff options
context:
space:
mode:
Diffstat (limited to 'deploy/etc/apache2/sites-available')
-rw-r--r--deploy/etc/apache2/sites-available/001-piny63
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>