Versions Compared

Key

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

...

Addon companies are a good alternative to purchasing additional licenses and maintaining separate installations. They allow for separate client bases, packages, order forms, extensions, branding and much more, all in the same installation. Staff can have access to one or more companies, and even have different roles in each company. Each company can be accessed at a different hostname. This , which makes it possible to run multiple companies from the same interface completely transparent to the customer. A standard Blesta installation contains one company.

...

To create an additional company, visit [Settings] > [System] > Companies. You will see a list of your existing companies. By default there will be 1 company that cannot be deleted, which is your initial, included company.

Image RemovedImage Added

Then, click the "Add Company" button in the upper right corner. The following form will be displayed:

Image RemovedImage Added

Enter the following details:

...

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
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>

...