Configure virtual host support - Fluid Topics - 3.11

Install Fluid Topics on Multiple Servers

Operating system
RHEL
Category
Technical Notes
Audience
public
Version
3.11

To enable virtual host support, it is necessary to configure, on all servers, the following two files:

  • default.conf
  • httpd.conf

Edit (or create) the default.conf file:

As root user

/etc/httpd/conf.d/default.conf

  • On the Back Office server

    Add the following lines:

    <VirtualHost *:80>
    ServerName $BACK_OFFICE_HOSTNAME
    DocumentRoot /var/www/html/bo-portal/
    Header always append X-Frame-Options SAMEORIGIN
    <Directory /var/www/html>
    Options -Indexes
    Order deny,allow
    Allow from all
    </Directory>

    ProxyRequests Off
    ProxyPass /bo-ws http://localhost:36080/bo-ws
    AllowEncodedSlashes On
    </VirtualHost>

  • On the Front server

    Add the following lines:

    <VirtualHost *:80>
    DocumentRoot /var/www/html/
    Header always append X-Frame-Options SAMEORIGIN
    <Directory /var/www/html/>
    Options -Indexes
    Order deny,allow
    Allow from all
    </Directory>
    Include /usr/local/afs7/Fluid-Topics/templates/apache2/default-site.conf
    Include /usr/local/afs7/Fluid-Topics/templates/apache2/common.conf
    AllowEncodedSlashes On
    </VirtualHost>

  • On the Indexing server

    Add the following lines:

    <VirtualHost *:80>
    DocumentRoot /var/www/html/
    Header always append X-Frame-Options SAMEORIGIN
    <Directory /var/www/html/>
    Options -Indexes
    Order deny,allow
    Allow from all
    </Directory>
    #Include /usr/local/afs7/Fluid-Topics/templates/apache2/default-site.conf
    #Include /usr/local/afs7/Fluid-Topics/templates/apache2/common.conf
    AllowEncodedSlashes On
    </VirtualHost>

The default.conf file is required and must be taken into account before each alias DNS configuration file.

Edit the httpd.conf file:

As root user

/etc/httpd/conf/httpd.conf

  • On the Back Office and Front servers:

    Add the following line:

    NameVirtualHost *:80

    If present, ensure this line is not commented (remove '#'):

    Check the following lines are present (if not, add them):

    <Directory "/var/www/html">
    ...
    Options -Indexes FollowSymLinks
    ...
    </Directory>

    and

    <Directory "/var/www/icons">
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>

  • On the Indexing Server:

    Check the following lines are present (if not, add them):

    <Directory "/var/www/html">
    ...
    Options -Indexes FollowSymLinks
    ...
    </Directory>