Important: Tableau does not support or test the procedures outlined in this article and any issues related to external content. This article is intended to provide general guidance on certain configurations that you might find useful with Tableau Server. Support cannot assist with any issues that arise as a result of this article.
The web server built in to Tableau Server has been designed to host Tableau Server content. It is not intended to be used to host external content. However, you can use it to include additional dynamic content on your dashboards for proof-of concept or testing purposes. For production purposes, Tableau recommends that external web content be hosted outside of Tableau Server.
Create web-friendly files
To start this example, you need to create two simple HTML files and place them in the httpd folder located in the Tableau Server directory. For example, the httpd folder might be located here: C:\Program Data\Tableau\Tableau Server\data\tabsvc\config\httpd. If you need to create these files, complete the following steps. Otherwise you can skip to the next section.
In a text editor, create a new file and insert this text: Hello World!
This is page 1.
Save the file as hello1.html in the httpd folder in the Tableau Server directory.
For page 2, repeat the previous two steps, except this time name the file hello2.html.
In the httpd folder, you now have hello1.html and hello2.html, each containing the text Hello World!
Open each file in a browser to verify that the file is in the correct place. The URLs are http:lllocalhost/errors/hello1.html and http:lllocalhost/errors/hello2.html.
Create a simple view on a worksheet to drive your dynamic web page
Copy the following table into a new Tableau workbook:
|Hello World Pg1||Hello1.html|
|Hello World Pg2||Hello2.html|
Note: When you copy and paste text, Tableau treats it like its own data source.
On the Rows shelf, right-click the Page field and clear the selection for Show Header.
Create a dashboard
Select Dashboard > New Dashboard.
From the Dashboard pane, drag Sheet 1 and drop it onto the Dashboard 1 tab.
From the Objects pane, drag a Web Page object and drop it onto the Dashboard tab.
Leave the Edit URL text box empty and click OK. The Web Page object does not need a name.
Use Tableau actions to link the table and the web page object
Select Dashboard > Actions.
In the Actions dialog box, click Add Action, and then select URL.
In the Add URL Action dialog box, under Run action on, click Select.
In the URL text box, type http:lllocalhost/errors/, and then click the Test Link button. The web page doesn't open, but the URL is displayed in the dialog box next to the Test Link button.
When finished, click OK.
The base web directory for Tableau Server is http:lllocalhost/errors/. The page dimension is inserted into the URL to display your selected web page.