diff options
author | Joe Rayhawk <jrayhawk@cobain.omgwallhack.org> | 2018-09-24 22:44:29 -0700 |
---|---|---|
committer | Joe Rayhawk <jrayhawk@cobain.omgwallhack.org> | 2018-09-24 22:44:29 -0700 |
commit | 5ab6999d393cbdf65cd5fd3ab40e02c33849f9c4 (patch) | |
tree | c59fcb9d4807f24ca708675aaede8320f464af6c /pinyconfigs/etc/apache2/sites-available/piny.conf | |
parent | d4535e3b1f60c6ecd57ed6b8cc4ad2358ad2a01e (diff) | |
download | piny-code-5ab6999d393cbdf65cd5fd3ab40e02c33849f9c4.tar.gz piny-code-5ab6999d393cbdf65cd5fd3ab40e02c33849f9c4.zip |
pinyconfig: Modernizing configuration files.
Diffstat (limited to 'pinyconfigs/etc/apache2/sites-available/piny.conf')
-rw-r--r-- | pinyconfigs/etc/apache2/sites-available/piny.conf | 81 |
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> |