A virtual host setup is the recommended, most secure setup of eZ Publish. A general virtual host setup template can be found here: https://github.com/ezsystems/ezpublish-community/blob/master/doc/apache2
For further description of the concept of virtual hosts in general, refer to the Apache documentation.