This step is to be performed on each server hosting the Front environment.
To generate Apache configuration for the new tenant:
This step is to be performed on each server hosting the Front environment.
To generate Apache configuration for the new tenant:
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>
As root user
/etc/httpd/conf.d/$DOMAIN_NAME.conf
DocumentRoot /var/www/html/
Header always append X-Frame-Options SAMEORIGIN
<Directory /var/www/html>
Options -Indexes
Order deny,allow
Allow from all
</Directory>