Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In order to get Blesta to load companies at the hostname hostnames specified under [Settings] > [System] > Companies, it's necessary to point each hostname to the same document root. For example, if you have Blesta installed at /var/www/html/, then each virtual host should point to this location. Each virtual host may have it's own IP address and SSL certificate, but they must all be on the same server, and point to the same document root.

We suggest when using multi-company, you use subdomains for your Blesta installation, otherwise it will not be possible to have different website content at each hostname.

Here is an example of virtualhost's as configured for Apache in httpd.conf

Code Block
themeEmacs
titlehttpd.conf
<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>