From d93ae6cfec16355b757cca2d37fc4f317b85c185 Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Tue, 24 Feb 2015 04:38:50 +0000 Subject: [PATCH] Add Apache configuration for kirsle.net --- apache.conf | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 apache.conf diff --git a/apache.conf b/apache.conf new file mode 100644 index 0000000..f476a4b --- /dev/null +++ b/apache.conf @@ -0,0 +1,49 @@ +## SSL main site www.kirsle.net + + ServerName www.kirsle.net + WSGIDaemonProcess kirsle user=kirsle group=kirsle threads=5 home=/home/kirsle/git/rophako + WSGIScriptAlias / /home/kirsle/git/rophako/app.wsgi + WSGIScriptReloading On + CustomLog /home/kirsle/logs/access_log combined + ErrorLog /home/kirsle/logs/error_log + SuexecUserGroup kirsle kirsle + + # SSL + SSLEngine on + SSLCertificateChainFile /etc/ssl/kirsle.net/smtpd.pem + SSLCertificateFile /etc/ssl/kirsle.net/www_kirsle_net.crt + SSLCertificateKeyFile /etc/ssl/kirsle.net/kirsle.key + + SSLOptions +StdEnvVars + BrowserMatch "MSIE [2-6]" \ + nokeepalive ssl-unclean-shutdown \ + downgrade-1.0 force-response-1.0 + BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown + + + WSGIProcessGroup kirsle + WSGIApplicationGroup %{GLOBAL} + Order allow,deny + Allow from all + + + # Static file aliases. + Alias /favicon.ico /home/kirsle/www/favicon.ico + Alias /robots.txt /home/kirsle/www/robots.txt + Alias /creativity/ /home/kirsle/www/creativity/ + Alias /doc/ /home/kirsle/www/doc/ + Alias /images/ /home/kirsle/www/images/ + Alias /mail/ /home/kirsle/www/mail/ + Alias /piwik/ /home/kirsle/www/piwik/ + Alias /projects/ /home/kirsle/www/projects/ + Alias /static/ /home/kirsle/www/static/ + Alias /wizards/ /home/kirsle/www/wizards/ + + # Legacy static files root + + Options Indexes FollowSymLinks ExecCGI + AllowOverride All + Order allow,deny + Allow from all + +