Setting Up Apache HTTP Server for Designer of Business Applications on ALT Linux OS

This article is one of the steps of Apache HTTP Server setup to access resources of the designer of business applications. See full instruction in the Installing and Setting Up Designer of Business Applications Back End article.

To access resources of the designer of business applications on ALT Linux OS, set up Apache HTTP Server:

  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/sysconfig/httpd2:

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 file /etc/httpd2/conf/sites-available/webserver.conf for edit, which was created during Apache HTTP Server 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 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 httpd2 access permissions to files of the designer of business applications:

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

sudo systemctl restart httpd2

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

http://localhost:80/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 ALT Linux OS article.

See also:

Installing and Setting Up BI Server on ALT Linux OS | Installing and Setting Up Designer of Business Applications Back End