<VirtualHost *:441>
	ServerName aeyons2.ucm.dev
	ServerAlias aeyons2 au.aeyons2.ucm.dev us.aeyons2.ucm.dev
	DocumentRoot "/www/aeyons2"
	ServerAdmin sam@ucm.dev
	ErrorLog logs/aeyons2-error_log
	CustomLog logs/aeyons2-access_log combined
	ScriptAlias /x/ /www/aeyons2/x/
	ScriptAlias /a/ /www/aeyons2/a/
	AddHandler cgi-script .cgi
	<Directory "/www/aeyons2">
		Options +Indexes
		Options +FollowSymLinks -SymLinksIfOwnerMatch
		Require all granted
		AllowOverride All
	</Directory>
	<Directory "/www/aeyons2/x">
		AllowOverride None
		Options +ExecCGI -MultiViews
		Options +FollowSymLinks -SymLinksIfOwnerMatch
		Require all granted
	</Directory>
	<Directory "/www/aeyons2/a">
		AllowOverride None
		Options +ExecCGI -MultiViews
		Options +FollowSymLinks -SymLinksIfOwnerMatch
		AuthName "Admin Only"
		AuthType Basic
		AuthUserFile /www/aeyons2/.htpasswd
		Require valid-user
	</Directory>
	<Directory "/www/aeyons2/logout">
		AllowOverride None
		authname "Admin Only"
		authtype basic
		authuserfile /www/aeyons2/logout/.htpasswd
		require valid-user
	</Directory>
	<Directory "/www/aeyons2/log">
		Options +FollowSymLinks -SymLinksIfOwnerMatch
		AllowOverride None
		AuthName "Admin Only"
		AuthType Basic
		AuthUserFile /www/aeyons2/.htpasswd
		Require valid-user
	</Directory>
	AddDefaultCharset utf-8
	RewriteEngine on
#	RewriteRule ^/example$ https://example.com/ [L]
	SSLCertificateFile /etc/letsencrypt/live/ucm.dev/fullchain.pem
	SSLCertificateKeyFile /etc/letsencrypt/live/ucm.dev/privkey.pem
	Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
<VirtualHost *:81>
	ServerName aeyons2.ucm.dev
	ServerAlias aeyons2 au.aeyons2.ucm.dev us.aeyons2.ucm.dev
	DocumentRoot "/www/aeyons2"
	ServerAdmin sam@ucm.dev
	ErrorLog logs/aeyons2-error_log
	CustomLog logs/aeyons2-access_log combined
	RewriteEngine on
	RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L]
</VirtualHost>
