Skip to main content

Currently the Tableau server is being addressed by its machine name, and the environment team has told me that applying a CNAME to the server will only help map traffic initially, but the machine name will still appear in the browser window.

 

Instead I have been told to do a URL rewrite.  I found this post in the forum that says to edit httpd.conf.templ file in path *\Tableau\Tableau Server\[version]\templates.  I placed the following command in the file

 

# turn on the rewrite engine (module loaded above) #TABLEAU CODE

RewriteEngine on

...

 

⌗Rewrite the URL so that the server name does not appear #MY CODE

RewriteCond %{HTTP_HOST} !^(.*)[server name]\.[domain]\.com [NC]

RewriteCond %{HTTP_HOST} !^$

RewriteRule ^/(.*) name].[domain].com/$1 [R,L]

 

I did tabadmin stop, tabadmin config, tabadmin start and the url is not redirecting. Any thoughts on what I'm missing?

3 answers
  1. Apr 13, 2014, 12:07 PM

    I don't think URL rewrites will be the solution to your problem.

     

    Adding a CNAME to the DNS which 'points' to the machine name should work, since Tableau only uses relative URLs inside Server as far as I can see. Same as using A records (= using IP adresses in the DNS server).

    Just give it a try - it is much easier to test than fiddling with URL rewrites...

0/9000