When performing a deployment action, such as deploying, synchronizing/redeploying, updating, rolling back or removing an application, Zend Server restarts and performs certain changes to your Apache. The web server configuration is modified to create virtual hosts and aliases for deployed applications. In order to make the modifications simple and maintainable, the Zend Server configuration is small separate files which are hooked into Apache.
Zend Server installation inserts an include in two places:
Inside the default virtual host section (the first defined virtual
host is assumed to be the default):
The content of the above file should be:
# ...application directory settings
At the end of the Apache configuration:
For each deployed application, Zend Server creates the following files:
The globals file holds definitions such as NameVirtualHost *:<port> for each port that actually has virtual hosts.
Each virtual host is defined in <ZEND_DIR>/etc/sites.d/vhost_<host>_<port>.conf
Each virtual host definition includes aliases from the directory <ZEND_DIR>/etc/sites.d/http/<host>/port/
Each alias is defined in a file named <order_number>-<alias_name>/conf
When Zend Server restarts your web server, current requests are aborted and lost. The sessions are kept in the same state as before the restart, and all information that was modified in the session during the ongoing request is lost. After the restart begins, incoming requests are queued until the restart completes and are then processed.