summaryrefslogtreecommitdiff
path: root/pinyconfigs/etc/apache2/sites-available/piny.conf
diff options
context:
space:
mode:
Diffstat (limited to 'pinyconfigs/etc/apache2/sites-available/piny.conf')
-rw-r--r--pinyconfigs/etc/apache2/sites-available/piny.conf81
1 files changed, 81 insertions, 0 deletions
diff --git a/pinyconfigs/etc/apache2/sites-available/piny.conf b/pinyconfigs/etc/apache2/sites-available/piny.conf
new file mode 100644
index 0000000..6702a3d
--- /dev/null
+++ b/pinyconfigs/etc/apache2/sites-available/piny.conf
@@ -0,0 +1,81 @@
+<VirtualHost *:80>
+ ServerName piny.be
+
+ DocumentRoot /srv/http/piny.be
+
+ <Directory />
+ Options Indexes FollowSymLinks MultiViews
+ AllowOverride None
+ </Directory>
+
+ Alias /js /usr/share/javascript
+
+ RedirectMatch 301 ^/$ http://piny.be/piny-hosting/
+
+ Include /etc/apache2/piny/www
+</VirtualHost>
+
+<VirtualHost *:80>
+ ServerName www.piny.be
+ RedirectMatch 301 (.*) http://piny.be$1
+</VirtualHost>
+
+<VirtualHost *:443>
+ ServerName piny.be
+ DocumentRoot /srv/https/piny.be
+
+ <Directory />
+ Options Indexes FollowSymLinks MultiViews
+ AllowOverride None
+ </Directory>
+
+ Alias /js /usr/share/javascript
+
+ RedirectMatch 301 ^/$ http://piny.be/piny-hosting/
+
+ SSLEngine On
+
+ Include /etc/apache2/piny/www
+</VirtualHost>
+
+<VirtualHost *:80>
+ ServerName secure.piny.be
+ RedirectMatch 301 (.*) https://secure.piny.be$1
+</VirtualHost>
+
+<VirtualHost *:443>
+ ServerName secure.piny.be
+ DocumentRoot /srv/https/secure.piny.be
+ RedirectMatch 301 ^/$ http://piny.be/
+
+ <Directory />
+ SSLRequireSSL
+ Options Indexes FollowSymLinks MultiViews
+ AllowOverride None
+ </Directory>
+
+ <Directory "/srv/https/secure.piny.be/write">
+ SetHandler cgi-script
+ Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
+ </Directory>
+
+ <Directory "/usr/lib/cgi-bin/piny/auth">
+ AuthBasicProvider PAM
+ AuthPAMService other
+ AuthBasicAuthoritative off
+ AuthType Basic
+ AuthName "User account for piny.be needed."
+ Require valid-user
+ </Directory>
+
+ Alias /_cgit /usr/share/cgit
+
+ ScriptAlias /cgit /usr/lib/cgi-bin/cgit.cgi
+ ScriptAlias /piny-newuser /usr/lib/cgi-bin/piny/newuser.cgi
+ ScriptAlias /piny-validate /usr/lib/cgi-bin/piny/checkconstraint.cgi
+ ScriptAlias /auth /usr/lib/cgi-bin/piny/auth
+
+ SSLEngine On
+
+ Include /etc/apache2/piny/secure
+</VirtualHost>