Zend Server 7 - 8.5
Deploying an application to an HTTPS Virtual Host using the CLI tool zs-client.phar installs it in an incorrect directory. For example, deploying an application to the virtual host named example.com will install it in the directory /usr/local/zend/var/apps/https/example.com/80 instead of the correct one /usr/local/zend/var/apps/https/example.com/443.
To get the HTTPS application installed to the correct document root path, you should explicitly specify the SSL port 443 with the option --baseUri in the zs-client command, for example, --baseUri='example.com:443'. As an example, see the following sample command which will install the application at the correct document root:
Note: In case of re-deploying or updating an application that is already deployed to the incorrect sub-directory, you must remove the application first and then deploy it again, so that the application path is regenerated correctly.