summaryrefslogtreecommitdiff
path: root/pinyconfigs/etc/apache2
diff options
context:
space:
mode:
authorJulian Blake Kongslie <jblake@omgwallhack.org>2010-11-07 00:09:53 -0700
committerJulian Blake Kongslie <jblake@omgwallhack.org>2010-11-07 00:09:53 -0700
commit82f9c9f1fa19c59e296570412656c66607d46f48 (patch)
tree37ddd246883521548513faebd94688b0db70e24c /pinyconfigs/etc/apache2
parent94fc7a992c7f3e163b491ce8b248f3c1b4ca2702 (diff)
downloadpiny-code-82f9c9f1fa19c59e296570412656c66607d46f48.tar.gz
piny-code-82f9c9f1fa19c59e296570412656c66607d46f48.zip
pinyconfigs
Adding a package that does all the config file magic to get a piny instance running. Signed-off-by: Julian Blake Kongslie <jblake@omgwallhack.org>
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>