<VirtualHost *:441>
	ServerName sam.aiki.info
	ServerAlias sam samau.aiki.info
	DocumentRoot "/www/sam.aiki.info"
	ServerAdmin sam@aiki.info
	ErrorLog logs/sam-error_log
	CustomLog logs/sam-access_log combined
	ScriptAlias /cgi-bin/ /www/sam.aiki.info/cgi-bin/
	ScriptAlias /x/ /www/sam.aiki.info/x/
	AddHandler cgi-script .cgi
	<Directory "/www/sam.aiki.info">
		Options +Indexes +SymLinksIfOwnerMatch
		Require all granted
		AllowOverride All
	</Directory>
	<Directory "/home/sam">
		Options +Indexes +SymLinksIfOwnerMatch
		Require all granted
		AllowOverride All
	</Directory>
	<Directory "/www/sam.aiki.info/cgi-bin">
		AllowOverride None
		Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
		Require all granted
	</Directory>
	<Directory "/www/sam.aiki.info/comments">
		Options -Indexes
		Require all granted
	</Directory>
	<Directory "/www/sam.aiki.info/x">
		AllowOverride None
		Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
		Require all granted
	</Directory>
	<Directory "/www/sam.aiki.info/a">
		AllowOverride None
		Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
		AuthName "Admin Only"
		AuthType Basic
		AuthUserFile /www/sam.aiki.info/.htpasswd
		Require valid-user
	</Directory>
	<Directory "/www/sam.aiki.info/logout">
		AllowOverride None
		authname "Admin Only"
		authtype basic
		authuserfile /www/sam.aiki.info/logout/.htpasswd
		require valid-user
	</Directory>
	<Directory "/www/sam.aiki.info/log">
		AllowOverride None
		AuthName "Admin Only"
		AuthType Basic
		AuthUserFile /www/sam.aiki.info/.htpasswd
		Require valid-user
	</Directory>
	<FilesMatch "^\.">
		order allow,deny
		deny from all
	</FilesMatch>
	AddType text/plain .b .bb .bh .bbh .b1 .c .cc .h .sh .pl .py
	AddDefaultCharset utf-8
	RewriteEngine on
	RewriteRule ^/rescue$ http://sam.aiki.info/code/rescue/rescue.html [L]
	RewriteRule ^/peace_diary$ https://docs.google.com/document/d/1QM8lM97xJq3hnO-0DRSOWdDcgsJtqHSf8JgRi75WCBg/edit [L]
	SSLCertificateFile /etc/letsencrypt/live/aiki.info/fullchain.pem
	SSLCertificateKeyFile /etc/letsencrypt/live/aiki.info/privkey.pem
	Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
<VirtualHost *:441>
	ServerName sam.nipl.net
	DocumentRoot "/www/sam.aiki.info"
	ServerAdmin sam@aiki.info
	ErrorLog logs/sam-error_log
	CustomLog logs/sam-access_log combined
	RewriteEngine on
	RewriteRule ^/(.*)$ https://sam.aiki.info/$1 [L]
	SSLCertificateFile /etc/letsencrypt/live/aiki.info/fullchain.pem
	SSLCertificateKeyFile /etc/letsencrypt/live/aiki.info/privkey.pem
	Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
<VirtualHost *:441>
	ServerName samau.nipl.net
	DocumentRoot "/www/sam.aiki.info"
	ServerAdmin sam@aiki.info
	ErrorLog logs/sam-error_log
	CustomLog logs/sam-access_log combined
	RewriteEngine on
	RewriteRule ^/(.*)$ https://samau.aiki.info/$1 [L]
	SSLCertificateFile /etc/letsencrypt/live/aiki.info/fullchain.pem
	SSLCertificateKeyFile /etc/letsencrypt/live/aiki.info/privkey.pem
	Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
