diff options
author | Julian Blake Kongslie <jblake@omgwallhack.org> | 2010-11-07 00:09:53 -0700 |
---|---|---|
committer | Julian Blake Kongslie <jblake@omgwallhack.org> | 2010-11-07 00:09:53 -0700 |
commit | 82f9c9f1fa19c59e296570412656c66607d46f48 (patch) | |
tree | 37ddd246883521548513faebd94688b0db70e24c /pinyconfigs/etc/apache2/sites-available/piny | |
parent | 94fc7a992c7f3e163b491ce8b248f3c1b4ca2702 (diff) | |
download | piny-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/sites-available/piny')
-rw-r--r-- | pinyconfigs/etc/apache2/sites-available/piny | 63 |
1 files changed, 63 insertions, 0 deletions
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> |