Setting Up Apache HTTP Server for Designer of Business Applications on RHEL OS and Ubuntu OS

It is supposed that DBA.war archive is unpacked and is in the folder /opt/Foresight/9.2/dba.

If designer of business applications folder was copied to the home user directory, execute the following commands:

cd /opt/Foresight/9.2

sudo cp -R ~/<designer of business applications folder> /opt/Foresight/9.2

sudo mv <designer of business applications folder> dba

sudo chown -R apache:apache dba

To set up Apache HTTP Server to access designer of business applications resources:

  1. Make sure that the Apache HTTP Server (httpd) web server was installed. Otherwise install the web server using the command:

sudo yum install httpd

NOTE. The Apache HTTP Server web server is installed with BI server.

  1. Make sure that headers, rewrite, proxy, proxy_http units are enabled.

To see a list of enabled units, execute the command:

apachectl -M

To connect units execute the commands:

sudo ln -s /etc/apache2/mods-available/headers.load /etc/apache2/mods-enabled/headers.load

sudo ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/rewrite.load

sudo ln -s /etc/apache2/mods-available/proxy.load /etc/apache2/mods-enabled/proxy.load

sudo ln -s /etc/apache2/mods-available/proxy_http.load /etc/apache2/mods-enabled/proxy_http.load

  1. Open the httpd.conf configuration file for edit:

sudo juffed /etc/sysconfig/httpd.conf

  1. At the end of the file specify path to the folder containing designer of business applications:

export PATH_TO_DBA=/opt/Foresight/fp9.2-dba

export PP_SOM=http://localhost/axis2/services/PP.SOM.Som

On using systemd as initialization system, it is not required to write export command for correct setup. In this case, the following strings are added to the file:

PATH_TO_DBA=/opt/Foresight/fp9.2-dba

PP_SOM=http://localhost/axis2/services/PP.SOM.Som

NOTE. Value of the PP_SOM environment variable may be different depending on where and at which port BI server is started.

  1. Open the httpd.conf configuration file for edit:

sudo juffed /etc/httpd/conf/httpd.conf

  1. Add the following strings at the end:

<VirtualHost *:80>

Alias /dba/app/ ${PATH_TO_DBA}/app/

Alias /dba/build/ ${PATH_TO_DBA}/build/

Alias /dba/dashboard/ ${PATH_TO_DBA}/dashboard/

Alias /dba/resources/ ${PATH_TO_DBA}/resources/

Alias /dba/index.html ${PATH_TO_DBA}/index.html

Alias /dba/libs/ ${PATH_TO_DBA}/libs/

Alias /dba/ ${PATH_TO_DBA}/

ProxyPass /dba/app/PPService.axd ${PP_SOM} retry=1 acquire=3000 timeout=6000 Keepalive=On

RewriteEngine On

RewriteCond %{QUERY_STRING} (.*(?:^|&))cache(=1)?((?:&|$).*)

RewriteRule .* - [env=CACHEBLE]

KeepAlive Off

<Directory "${PATH_TO_DBA}/">

Options Indexes

AllowOverride All

Order allow,deny

Allow from all

FileETag None

SetEnv no-gzip 1

SetEnv dont-vary 1

<FilesMatch "\.([^.]+)$">

Header set Cache-Control "public, max-age=31536000" env=CACHEBLE

Header unset Pragma

Header unset ETag

UnsetEnv CACHEBLE

</FilesMatch>

<FilesMatch "\.cache\.(js|html)$">

Header set Cache-Control "public, max-age=31536000"

</FilesMatch>

</Directory>

</VirtualHost>

NOTE. The dba directory can be changed for a more appropriate depending on installed version of Foresight Analytics Platform.

See also:

Installing and Settings Up BI Server on RHEL OS | Installing and Setting Up Server Part of Designer of business Applications