You will configure Zimbra virtual host like other <ahref="../configvhost.html"class="wikilink1"title="documentation:2.0:configvhost">protected virtual host</a> but you will use Zimbra Handler instead of default Handler.
<h3class="sectionedit7"id="zimbra_virtual_host_in_manager">Zimbra virtual host in Manager</h3>
<divclass="level3">
<p>
Go to the Manager and <ahref="../configvhost.html#lemonldapng_configuration"class="wikilink1"title="documentation:2.0:configvhost">create a new virtual host</a> for Zimbra.
</p>
<p>
Just configure the <ahref="../writingrulesand_headers.html#rules"class="wikilink1"title="documentation:2.0:writingrulesand_headers">access rules</a>.
You just have to set “Type: ZimbraPreAuth” in virtualhost options and reload configuration in this handler.
</p>
</div>
<!-- EDIT7 SECTION "Zimbra virtual host in Manager" [2381-2597] -->
Choose “<abbrtitle="Cross Domain Authentication">CDA</abbr>” has type for each virtualHost concerned by <abbrtitle="Cross Domain Authentication">CDA</abbr><em>(ie not in main domain)</em>.
Your wrappers must be named “Lemonldap::NG::Handler::<platform>::<type>” where <platform> is the target (ApacheMP2 or Server) and <type> is the name you've chosen.
</p>
<p>
You can enable it either:
</p>
<ul>
<liclass="level1"><divclass="li"> by setting a “PerlSetVar” in the Apache configuration file</div>
<liclass="level1"><divclass="li"> by setting a <code>PerlSetVar VHOSTTYPE <type></code> in the Apache configuration file</div>
</li>
<liclass="level1"><divclass="li"> by setting a <code>fastcgi_param VHOSTTYPE <type></code> in the Nginx configuration file</div>
</li>
<liclass="level1"><divclass="li"> by adding it to the menu: add its name in <code>vhostType</code> “select” declaration (file <code>lemonldap-ng-manager/lib/Lemonldap/NG/Build/Attributes</code>) and rebuild LLNG</div>
</li>
</ul>
<p>
Note that configuration parameter can be set only in lemonldap-ng.ini configuration file <em>(section Handler)</em>.
</p>
</div>
<!-- EDIT3 SECTION "Enable it" [724-998] -->
<!-- EDIT3 SECTION "Enable it" [724-1379] -->
<h2class="sectionedit4"id="add_a_new_platform">Add a new platform</h2>
The goal of this handler is to read vhost configuration from the website itself and not in LLNG configuration. Rules and headers are set in a <strong>rules.json</strong> file available at the root of the website (ie <ahref="http://website/rules.json"class="urlextern"title="http://website/rules.json"rel="nofollow">http://website/rules.json</a>). This file looks like: