Configure Apache for Each New Tenant - Fluid Topics - 3.9 - Technical Notes

Install Fluid Topics on a Single Server

Product
Fluid Topics
FT_Version
3.9
Platform
RHEL
Category
Technical Notes
language
English
audience
public

This step is to be performed on each server hosting the Front environment.

To generate Apache configuration for the new tenant:

  1. Run the following command:

    As root user

    /usr/local/afs7/contrib/python/3.5/bin/ft_generate_apache_virtual_host_conf -t $TENANT_ID -dn $DOMAIN_NAME | sudo tee /etc/httpd/conf.d/$DOMAIN_NAME.conf

    If using a Load Balancer to connect several fronts, the $DOMAIN_NAME should be provided by the Load Balancer.

    A basic Apache configuration like the following one is displayed:

    <VirtualHost *:80>
    ServerName http://my-portal.fluidtopics.net

    Include /usr/local/afs7/Fluid-Topics/templates/apache2/common.conf

    ProxyPass / http://my-portal.fluidtopics.net
    ProxyPassReverse / http://my-portal.fluidtopics.net
    </VirtualHost>

  2. Edit the following file:

    As root user

    /etc/httpd/conf.d/$DOMAIN_NAME.conf

  3. Add the following lines after the ServerName line:

    DocumentRoot /var/www/html/
    Header always append X-Frame-Options SAMEORIGIN
    <Directory /var/www/html>
    Options -Indexes
    Order deny,allow
    Allow from all
    </Directory>