summaryrefslogtreecommitdiff
path: root/pinyconfigs/etc/apache2
diff options
context:
space:
mode:
Diffstat (limited to 'pinyconfigs/etc/apache2')
-rw-r--r--pinyconfigs/etc/apache2/envvars3
-rw-r--r--pinyconfigs/etc/apache2/sites-available/piny63
2 files changed, 66 insertions, 0 deletions
diff --git a/pinyconfigs/etc/apache2/envvars b/pinyconfigs/etc/apache2/envvars
new file mode 100644
index 0000000..c129349
--- /dev/null
+++ b/pinyconfigs/etc/apache2/envvars
@@ -0,0 +1,3 @@
+. /etc/apache2/envvars.default
+
+export APACHE_RUN_GROUP=shadow
diff --git a/pinyconfigs/etc/apache2/sites-available/piny b/pinyconfigs/etc/apache2/sites-available/piny
new file mode 100644
index 0000000..05808f4
--- /dev/null
+++ b/pinyconfigs/etc/apache2/sites-available/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>