...
Here is an example of virtualhost's as configured for Apache in httpd.conf for 2 companies, account.domain1.com on IP address 192.168.0.11 and account.domain2.com on IP address 192.168.0.12. Note how both point to the same document root, where Blesta is installed.
See https://httpd.apache.org/docs/2.4/vhosts/examples.html for more examples. Note that the important part is that the docroot is the same, and that Apache runs as the same user, so if a SuexecUserGroup is defined, they should be the same.
Code Block | ||||
---|---|---|---|---|
| ||||
<VirtualHost 192.168.0.11:80> DocumentRoot /var/www/html ServerName account.domain1.com <Directory "/var/www/html"> allow from all Options -Indexes </Directory> </VirtualHost> <VirtualHost 192.168.0.12:80> DocumentRoot /var/www/html ServerName account.domain2.com <Directory "/var/www/html"> allow from all Options -Indexes </Directory> </VirtualHost> |
...