Top
Apache web server
  • 01 Dec 2022
  • 1 Minute To Read
  • Dark
    Light
  • PDF

Apache web server

  • Dark
    Light
  • PDF

Whatfix Content can easily be exported and deployed into your own servers. This is useful when you are on an internal network and cannot access the content from Whatfix cloud or in cases when your IT security doesn't allow resource loading from remote servers.


Prerequisite

Before starting this procedure, you must have a separate non-root user account with sudo privileges set up on your server.


Deployment

Use the following steps to deploy Whatfix content,

  1. Navigate to the Whatfix Dashboard.
    Goto_dashboard

  2. On the top right, click the Settings icon.
    Dashboard_clicksettings3

  3. Click Export Content.
    RB_DB_Settings_export content

your title goes here

If you do not see the Export Content option, contact [email protected].

  1. Click Export.
    RB_DB_Settings_export
  1. An email with a link to download the content is sent to your registered email ID. Download the zip file.
  2. Extract the contents of the zip file inside 
    /var/www/html/
    which is usually Apache's default document root. Once you extract the contents, do not make changes to the extracted folder name (whatfix.com).
  3. Navigate to the extracted whatfix.com folder and expand it. Inside the folder is a file named embed.nocache.js which you need to include as a static js file in the <head> section of your application's HTML file.
    Apache_Server_nocacheJS
<script type="text/javascript" src="http://server_ip/whatfix.com/embed/embed.nocache.js"></script>
  1. Refresh your application to see live Whatfix content.
    warning
your title goes here

Make sure your web server has Cache-control set to no-cache for the *.nocache.js files, so that the request to the origin server is validated before releasing a cached copy.


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.