Setting Up Apache2 to Access Resources of Designer of Business Applications in Debian-Based Distributions

Below is the additional setup of Apache2 to access resources of designer of business applications in Debian-based distributions if designer of business applications back end was installed manually.

To access resources of designer of business applications:

  1. Make sure that the following conditions are satisfied:

  1. Specify the path to the folder with the installed designer of business applications in /etc/apache2/envvars:

export PATH_TO_DBA=/opt/foresight/dba/10.x

Specify server URL or IP address with BI server port in the end of the /etc/apache2/envvars file:

export BI_HOST=10.9.43.13:8810

When systemd is used as an initialization system, do not use the export command for correct setup:

PATH_TO_DBA=/opt/foresight/dba/10.x
  1. Open the /etc/apache2/sites-available/webserver.conf file for edit, which was created during Apache2 setup to access web application resources at Step 4, and add the following strings before the closing tag </VirtualHost>:

Alias /dba/index.html ${PATH_TO_DBA}/index.html
Alias /dba/ ${PATH_TO_DBA}/
ProxyPass /dba/PPService.axd ${PP_SOM} retry=1 acquire=3000 timeout=6000 Keepalive=On
<Directory "${PATH_TO_DBA}/">
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
    FileETag None
    SetEnv no-gzip 1
    SetEnv dont-vary 1
    <FilesMatch "\.([^.]+)$">
        Header set Cache-Control "public, max-age=31536000" env=CACHEBLE
        Header set X-Frame-Options "SAMEORIGIN"
        Header set Content-Security-Policy "default-src 'self' 'unsafe-inline' 'unsafe-eval';object-src 'self' ${BI_HOST};frame-src 'self' ${BI_HOST}; script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self' ws: wss: data: ${BI_HOST} data:;img-src 'self' data: ${BI_HOST}"
        Header unset Pragma
        Header unset ETag
        UnsetEnv CACHEBLE
    </FilesMatch>
    <FilesMatch "\.cache\.(js|html)$">
        Header set Cache-Control "public, max-age=31536000"
    </FilesMatch>
</Directory>

Specify the address contained in ProxyPass, as a value of the ppServiceUrl field in the DBA.config.json file:

"ppServiceUrl": "http://<web server>/dba/PPService.axd"

NOTE. The dba directory name can be changed. For details about setting up virtual hosts in Apache2 see the official documentation.

  1. Grant Apache2 access permissions to the designer of business applications files:

sudo chown -R www-data:www-data /opt/foresight/dba/10.x
  1. Restart Apache2:

sudo systemctl restart apache2

After executing the operations open the designer of business applications at:

http://localhost/dba/#/login?repo=FPREPOSITORY

Where:

If authorization failed, check BI server performance and its settings according to the Installing and Setting Up BI Server in Debian-Based Distributions article.

See also:

Manual Installation and Setup of Apache2 to Access Designer of Business Applications | Installing an Setting Up BI Server in Debian-Based Distributions