Views: 5722
Last Modified: 10.10.2012

If you need to install and run multiple instances of Bitrix Site Manager (e.g. different editions), or any other sites using Apache web server, you can easily accomplish this using a single installation of Bitrix Web Environment.

Do the following to configure Bitrix Web Environment for multi-system usage.

  • Create a folder in C:\Program Files\Bitrix Environment\. The folder can have any name.
  • Add the following lines to httpd.conf (in C:\Program Files\Bitrix Environment\apache\conf\):
    Listen 81
    <VirtualHost *:81> 
        ServerName localhost
        DocumentRoot "C:\Program Files\Bitrix Environment\folder_name" 

Here, 81 is the port number. The port must be specified twice: with the listen and VirtualHost directives. You can specify any vacant port number on the range 1 – 65535 to create a virtual host.

After you have finished the configuration, you will have to restart Bitrix Web Environment.

You can create as many sites as needed. The only thing to do is create a site folder and add a record to httpd.conf specifying a new port number for every new site.

In the example above, a new site can be accessed at http://localhost:81. Other sites are also available at http://localhost:port_number.

Additionally the following section in httpd.conf file should be changed:

 Options FollowSymLinks
 AllowOverride None

Replace AllowOverride None with AllowOverride All.

Courses developed by Bitrix24