<VirtualHost *:441>
	ServerName aiki.info
	DocumentRoot "/www/aiki.info"
	ServerAdmin swatkins@fastmail.fm
	ErrorLog logs/aiki-error_log
	CustomLog logs/aiki-access_log common
	ScriptAlias /x/ /www/aiki.info/x/
	AddHandler cgi-script .cgi
	<Directory "/www/aiki.info/">
		Options +Indexes
		Require all granted
	</Directory>
	<Directory "/www/aiki.info/x">
		AllowOverride None
		Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
		Require all granted
	</Directory>
	<Directory "/www/aiki.info/comments">
		Options -Indexes
		Require all granted
	</Directory>
	AddDefaultCharset utf-8
	RewriteEngine on
	RewriteRule ^/lib$ https://goo.gl/ov2ooE [L]
	RewriteRule ^/g$ https://www.facebook.com/groups/aiki.info/ [L]
	RewriteRule ^/y1 https://www.youtube.com/watch?v=VoW3IBm2-qw [QSA,L]
	RewriteRule ^/y2 https://www.youtube.com/watch?v=_COtgJ6vJIY [QSA,L]
	RewriteRule ^/y3 https://www.youtube.com/watch?v=l7VelwQqsZE [QSA,L]
	RewriteRule ^/new$ https://www.youtube.com/playlist?list=PLqkzs79RU9yW4pImk5KGRjak79sd2_ERL&jct=D7DFnipEc22g2puONRXoxtTMbeABDw [L]
	RewriteRule ^/daily$ https://docs.google.com/spreadsheets/d/1CsCm2GP79CjzEa4ptlku6AxDYZsyM-03QeijikKbSUM/edit [L]
	RewriteRule ^/vocab2$ https://docs.google.com/spreadsheets/d/1EP2ifkAHwViqyMRiBM06hsubBlHLuCUqoTKE6pQBPAM/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 www.aiki.info
	ServerAlias www.aiki.nipl.net aiki.nipl.net pi www
	DocumentRoot "/www/aiki.info
	ServerAdmin swatkins@fastmail.fm
	ErrorLog logs/aiki-error_log
	CustomLog logs/aiki-access_log common
	RewriteEngine on
	RewriteRule ^/(.*)$ http://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 test.aiki.info
	DocumentRoot "/www/test.aiki.info"
	ServerAdmin swatkins@fastmail.fm
	ErrorLog logs/aiki-error_log
	CustomLog logs/aiki-access_log common
	ScriptAlias /x/ /www/test.aiki.info/x/
	AddHandler cgi-script .cgi
	<Directory "/www/test.aiki.info/">
		Options +Indexes
		Require all granted
	</Directory>
	<Directory "/www/test.aiki.info/x">
		AllowOverride None
		Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
		Require all granted
	</Directory>
	<Directory "/www/test.aiki.info/comments">
		Options -Indexes
		Require all granted
	</Directory>
	AddDefaultCharset utf-8
	RewriteEngine on
	RewriteRule ^/lib$ https://goo.gl/ov2ooE [L]
	RewriteRule ^/y1 https://www.youtube.com/watch?v=VoW3IBm2-qw [QSA,L]
	RewriteRule ^/y2 https://www.youtube.com/watch?v=_COtgJ6vJIY [QSA,L]
	RewriteRule ^/y3 https://www.youtube.com/watch?v=l7VelwQqsZE [QSA,L]
	RewriteRule ^/new$ https://www.youtube.com/playlist?list=PLqkzs79RU9yW4pImk5KGRjak79sd2_ERL&jct=D7DFnipEc22g2puONRXoxtTMbeABDw [L]
	RewriteRule ^/daily$ https://docs.google.com/spreadsheets/d/1CsCm2GP79CjzEa4ptlku6AxDYZsyM-03QeijikKbSUM/edit [L]
	RewriteRule ^/vocab2$ https://docs.google.com/spreadsheets/d/1EP2ifkAHwViqyMRiBM06hsubBlHLuCUqoTKE6pQBPAM/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>
