<VirtualHost *:80>
	ServerName lo
	ServerAlias *.lo
	DocumentRoot /adresar/kde/mam/weby

	#do the magic: something.lo => DocumentRoot/something/document_root
	RewriteEngine On
	RewriteCond    %{HTTP_HOST}    ^([^.]*)\.([^.]*)$
	RewriteCond    %{REQUEST_URI}  !document_root
	RewriteRule    ^(.*)$          /%1/document_root$1
	
	# Possible values include: debug, info, notice, warn, error, crit,
	# alert, emerg.
	ErrorLog /adresar/kde/mam/weby/.log/error.log
	LogLevel debug
	
	CustomLog /adresar/kde/mam/weby/.log/access.log combined
	ServerSignature On

	RewriteLog "/adresar/kde/mam/weby/.log/rewrite.log"
	RewriteLogLevel 5

</VirtualHost>

<VirtualHost *:443>
	ServerName lo
	ServerAlias *.lo
	DocumentRoot /adresar/kde/mam/weby
	
	SSLEngine on
	SSLCertificateFile    /etc/ssl/certs/ssl-cert-snakeoil.pem
	SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key

	#do the magic: something.lo => DocumentRoot/something/document_root
	RewriteEngine On
	RewriteCond    %{HTTP_HOST}    ^([^.]*)\.([^.]*)$
	RewriteCond    %{REQUEST_URI}  !document_root
	RewriteRule    ^(.*)$          /%1/document_root$1
	
	# Possible values include: debug, info, notice, warn, error, crit,
	# alert, emerg.
	ErrorLog /adresar/kde/mam/weby/.log/error.log
	LogLevel debug
	
	CustomLog /adresar/kde/mam/weby/.log/access.log combined
	ServerSignature On

	RewriteLog "/adresar/kde/mam/weby/.log/rewrite.log"
	RewriteLogLevel 5

</VirtualHost>
