Virtual Host Template Legend

This legend lists the variables included in the configuration template of a virtual host. These variables can be changed when creating or editing a virtual host. For information on working with virtual hosts, see Working with Virtual Hosts.


Editing the virtual host template could cause problems to your Web server's configuration.

Variable Description


The virtual host port.

${virtual host}

The virtual host name.


The virtual host document root.


The folder containing virtual host aliases.


The file path to the SSL certificate.


The file path to the SSL certificate key.


The file path to the SSL chain file.


This is an example of a configuration template for an SSL-secured virtual host:

# Created by Zend Server


<VirtualHost *:${port}>

DocumentRoot "C:\Program Files (x86)\Zend\ZendServer\data\apps\https\newvirtual host\443\3.2.1/"

<Directory "C:\Program Files (x86)\Zend\ZendServer\data\apps\https\newvirtual host\443\3.2.1/">

Options +Indexes

DirectoryIndex index.php

Order allow,deny

Allow from all

AllowOverride All



SSLEngine on

SSLCertificateFile ${certificate_file}

SSLCertificateKeyFile ${certificate_key_file}

SSLCertificateChainFile ${certificate_chain_file}


ServerName ${virtual host}:${port}

Include "${aliasdir}/*.conf"