/
Disable HTTPS in Datafari

Disable HTTPS in Datafari

Valid from Datafari 5.1 (Datafari CE and EE)

Use this only for specific use cases. This option is not recommended.

Datafari is launched by default in HTTPS: to access to Datafari the url is : https://IP_DATAFARI/Datafari

The certificate is autosigned. You can easily replace it by a “real” one. In some situations, you might want to launch Datafari into HTTP rather than HTTPS (for instance in case you already have a reverse proxy in front of your Datafari installation, you do not have real certificates and you do not want that your users see the warning in their browser about autosigned certificate).

The process is :

  1. Backup the configuration in place for Apache proxy :

    cp /opt/datafari/apache/sites-available/tomcat.conf /opt/datafari/apache/sites-available/tomcat.bkp
  2. Edit the configuration of Apache :

    nano /opt/datafari/apache/sites-available/tomcat.conf
  • Delete the lines related to the VirtualHost 80

<VirtualHost *:80> ServerName $YOURSERVERNAME Redirect / https://YOURSERVER CustomLog /dev/null common Header set X-Frame-Options SAMEORIGIN </VirtualHost>
  • Change the line :

to :

  • Finally remove the lines :

You can save and close the file.

3. Apply the new configuration :


Valid from Datafari 4.4 up to Datafari 5 for Enterprise Edition

Datafari is launched by default in HTTPS ie to access to Datafari the url is : https://IP_DATAFARI:443/Datafari

The certificate is autosigned and you can easily replace it by a “real” one. For rare cases, you might want to launch Datafari into HTTP and not HTTPS (you already have a reverse proxy in front of your Datafari installation, you do not have real certificates and you do not want that your users see the warning in their browser about autosigned certificate).

The process is :

  1. Backup the configuration in place for Apache proxy :

  2. Copy the configuration for HTTP :

  3. Apply the new configuration :

 


The documentation below is valid from Datafari v4.0.0 to 4.2

To disable the SSL protocol in Datafari, follow these steps:

  1. Execute the following command:

  2. Stop Datafari

  3. Edit the file /opt/datafari/tomcat/webapps/Datafari/WEB-INF/web.xml and comment these lines:



  4. Edit the file /opt/datafari/solr/bin/solr.in.sh and comment these lines (put a '#' in front of them):

  5. Edit the file /opt/datafari/tomcat/conf/solr.properties and set the parameter SOLRPROTOCOL to 'http':



  6. Edit the file /opt/datafari/tomcat/conf/datafari.properties and set the parameter SOLRHOSTS to 'localhost:2181':

  7. Edit the file /opt/datafari/elk/kibana/config/kibana.yml and comment the following lines:

  8. Start Datafari

  9. Go to the admin interface, Statistics/ELK configuration and change the Kibana URI parameter to use http instead of https: http://127.0.0.1:5601/app/kibana

Related content

How is Datafari secured in HTTPS
How is Datafari secured in HTTPS
More like this
HTTPS / SSL Protocol
HTTPS / SSL Protocol
More like this
[DEPRECATED] Setup development environment with Eclipse (Linux) for Datafari 3.1
[DEPRECATED] Setup development environment with Eclipse (Linux) for Datafari 3.1
More like this
Password change in Apache proxy
Password change in Apache proxy
More like this
Add the JCIFS-NG Connector to Datafari - Community Edition
Add the JCIFS-NG Connector to Datafari - Community Edition
More like this
Development environment with Docker
Development environment with Docker
More like this