Configure virtual host support - Fluid Topics - 4.0

Install Fluid Topics on a Single Server

Operating system
RHEL
Category
Technical Notes
Audience
public
Version
4.0

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

  • default.conf
  • httpd.conf

Edit (or create) the default.conf file:

As root user

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

  • Add the following lines:

    <VirtualHost *:80>
    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>
    Include /usr/local/afs7/Fluid-Topics/templates/apache2/default-site.conf
    Include /usr/local/afs7/Fluid-Topics/templates/apache2/common.conf
    ProxyRequests Off
    ProxyPass /bo-ws http://localhost:36080/bo-ws
    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

  • 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>