|CUSTOM1|
|?DOCROOT=`HOME`/domains/sharedip|
|*if STATUS="server"|
|?DOCROOT=/var/www/html|
|*endif|
|*if DOCROOT="/var/www/html/domains/sharedip"|
|?DOCROOT=/var/www/html|
|*endif|
|?SSLPROTOCOL=24|
|CUSTOM2|
virtualHost |IP| {
  |CUSTOM3|
  listeners            |LISTENER_80|, |LISTENER_443|	
  user                    |USER|
  group                   |USER|
  vhRoot                  |HOME|
  allowSymbolLink         1
  enableScript            1
  restrained              1
  setUIDMode              2
  docRoot                   |DOCROOT|
  vhDomain                  |IP|
  vhAliases                 *
  adminEmails               root@localhost
  enableGzip                1
  enableIpGeo               1

  rewrite  {
    enable                  1
    autoLoadHtaccess        1
    RewriteFile .htaccess
	|CUSTOM4|
  }

  |CUSTOM5|
  vhssl  {
    keyFile                 |KEY|
    certFile                |CERT|
    certChain               1
    sslProtocol             |SSLPROTOCOL|
  }

  # include aliases
  include /usr/local/lsws/conf/httpd-alias.conf
  
  |CUSTOM6|
}
|CUSTOM7|