- 01 Dec 2022
- 1 Minute To Read
-
Print
-
DarkLight
-
PDF
Apache web server
- Updated On 01 Dec 2022
- 1 Minute To Read
-
Print
-
DarkLight
-
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,
-
Navigate to the Whatfix Dashboard.
-
On the top right, click the Settings icon.
-
Click Export Content.
If you do not see the Export Content option, contact [email protected].
- Click Export.
- An email with a link to download the content is sent to your registered email ID. Download the zip file.
- 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). - 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.
<script type="text/javascript" src="http://server_ip/whatfix.com/embed/embed.nocache.js"></script>
- Refresh your application to see live Whatfix content.
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.