|CUSTOM1|
|?SUEXEC_UG=|
|?OLD_USER=User `USER`|
|?OLD_GROUP=Group `GROUP`|
|*if APACHE_VER="2.0"|
|?SUEXEC_UG=SuexecUserGroup `USER` `GROUP`|
|?OLD_USER=|
|?OLD_GROUP=|
|*endif|

|?WWW_PREFIX=www.|
|*if WWW_REDIRECT="no"|
|?WWW_PREFIX=|
|*endif|
|CUSTOM2|

<VirtualHost |IP|:|PORT_80| |MULTI_IP|>
	|CUSTOM3|
	ServerName |POINTER|
	ServerAlias www.|POINTER|
	Redirect 301 / http://|WWW_PREFIX||DOMAIN|/
	<IfModule !mod_ruid2.c>
		|SUEXEC_UG|
	</IfModule>
	|OLD_USER|
	|OLD_GROUP|
	|CUSTOM4|
</VirtualHost>

|*if HAVE_SSL="1"|
<VirtualHost |IP|:|PORT_443| |MULTI_IP_SSL|>
	|CUSTOM5|
	SSLEngine on
	SSLCertificateFile |CERT|
	SSLCertificateKeyFile |KEY|
	|CAROOT|

	ServerName |POINTER|
	ServerAlias www.|POINTER|
	Redirect 301 / https://|WWW_PREFIX||DOMAIN|/
	<IfModule !mod_ruid2.c>
		|SUEXEC_UG|
	</IfModule>
	|OLD_USER|
	|OLD_GROUP|
	|CUSTOM6|
</VirtualHost>
|*endif|
|CUSTOM7|