<VirtualHost *:81>
	ServerName drama.aiki.info
	DocumentRoot "/www/drama.aiki.info"
	ServerAdmin swatkins@fastmail.fm
	ErrorLog logs/drama-error_log
	CustomLog logs/drama-access_log common
	ScriptAlias /x/ /www/drama.aiki.info/x/
	AddHandler cgi-script .cgi
	<Directory "/www/drama.aiki.info/">
		Options FollowSymLinks
		AllowOverride Limit Options FileInfo
		DirectoryIndex index.php
		Require all granted
	</Directory>
	AddDefaultCharset utf-8
	RewriteEngine on
	RewriteRule ^/(.*)$ https://drama.aiki.info/$1 [L]
</VirtualHost>
<VirtualHost *:441>
	ServerName drama.aiki.info
	DocumentRoot "/www/drama.aiki.info"
	ServerAdmin swatkins@fastmail.fm
	ErrorLog logs/drama-error_log
	CustomLog logs/drama-access_log common
	ScriptAlias /x/ /www/drama.aiki.info/x/
	AddHandler cgi-script .cgi
	<Directory "/www/drama.aiki.info/">
		Options FollowSymLinks
		AllowOverride Limit Options FileInfo
		DirectoryIndex index.php
		Require all granted
	</Directory>
	AddDefaultCharset utf-8
	RewriteEngine on
# 	RewriteRule ^index\.php$ - [L]
# 	RewriteCond %{REQUEST_FILENAME} !-f
# 	RewriteCond %{REQUEST_FILENAME} !-d
# 	RewriteRule . /index.php [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>
