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

Below is the additional setup of Apache2 to access resources of designer of business applications in RedHat-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 installed designer of business applications in /etc/sysconfig/httpd:

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

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/httpd/conf.d/webserver.conf file for edit, which was created on setting up Apache HTTP Server 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 server>:<port number>;frame-src 'self' <BI server>:<port number>; script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self' ws: wss: data: <BI server>:<port number> data:;img-src 'self' data: <BI server>:<port number>"
        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://<BI server>/dba/PPService.axd"

In the substitutions:

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

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

sudo chown -R apache:apache /opt/foresight/dba/10.x
  1. Restart httpd:

sudo systemctl restart httpd

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 on RHEL-Based Distributions article.

See also:

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