{"id":7,"date":"2013-10-20T09:58:28","date_gmt":"2013-10-20T07:58:28","guid":{"rendered":"http:\/\/blog.appcloud.ch\/?p=7"},"modified":"2017-03-12T10:21:05","modified_gmt":"2017-03-12T09:21:05","slug":"display-the-server-name-on-citrix-storefront-2-0-webreceiver","status":"publish","type":"post","link":"https:\/\/blog.sachathomet.ch\/de\/2013\/10\/20\/display-the-server-name-on-citrix-storefront-2-0-webreceiver\/","title":{"rendered":"Display the server name on Citrix StoreFront 2.0 WebReceiver"},"content":{"rendered":"<p>In enterprise environments most admins have more than one Citrix Storefront Webserver and loadbalance them over a Netscaler, \u00a0F5 or something equivalent.If a user has a\u00a0misbehaviour on the website it&#8217;s not always easy to find out on which Storefront Website this user is working. To simplify troubleshooting it can be helpful to know which web server \u00a0user is accessing.<\/p>\n<p>To see this on the website just add the following lines to the bold written files:<\/p>\n<p>C:\\inetpub\\wwwroot\\Citrix\\[Storenname]\\contrib\\<b>custom.style.css<\/b><\/p>\n<div>\n<pre style=\"padding-left: 30px;\">#SFserver {\r\n padding-right: 30px;\r\n padding-bottom: 20px;\r\n float: right;\r\n color: silver;\r\n }<\/pre>\n<\/div>\n<div>C:\\inetpub\\wwwroot\\Citrix\\[Storenname]\\contrib\\<b>custom.script.js<\/b><\/div>\n<pre style=\"padding-left: 30px;\">$(document).ready(function() {\r\n var $markup = $('&lt;div id=\"SFserver\"&gt;Storefront: \u00a0[Name of the Server e.g. StoreFront001] &lt;\/div&gt;');\r\n $('#resources-footer').append($markup);\r\n });<\/pre>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/blog.sachathomet.ch\/wp-content\/uploads\/2013\/10\/storefrontname.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9\" src=\"http:\/\/blog.sachathomet.ch\/wp-content\/uploads\/2013\/10\/storefrontname.jpg\" alt=\"StoreFront Website with Name in footer\" width=\"1045\" height=\"559\" srcset=\"https:\/\/blog.sachathomet.ch\/wp-content\/uploads\/2013\/10\/storefrontname.jpg 1045w, https:\/\/blog.sachathomet.ch\/wp-content\/uploads\/2013\/10\/storefrontname-300x160.jpg 300w, https:\/\/blog.sachathomet.ch\/wp-content\/uploads\/2013\/10\/storefrontname-768x411.jpg 768w, https:\/\/blog.sachathomet.ch\/wp-content\/uploads\/2013\/10\/storefrontname-1024x548.jpg 1024w\" sizes=\"auto, (max-width: 1045px) 100vw, 1045px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>This can also be done dynamic with JavaScript (System.Environment.machineName) but I had some troubles with formatting &#8230; and maybe you wont\u00a0reveal the real hostname and just put an alias there to\u00a0distinguish on which server the user is working.<\/p>\n<p><strong>Keep in mind that this file will be updated\/overwritten in a multi server environment when you click on propagate changes.<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>By the way, if you need this for the legacy Citrix Webinterface visit: \u00a0<a href=\"http:\/\/techblog.deptive.co.nz\/2012\/03\/display-server-name-on-citrix-web.html\">http:\/\/techblog.deptive.co.nz\/2012\/03\/display-server-name-on-citrix-web.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In enterprise environments most admins have more than one Citrix Storefront Webserver and loadbalance them over a Netscaler, \u00a0F5 or something equivalent.If a user has a\u00a0misbehaviour on the website it&#8217;s not always easy to find out on which Storefront Website this user is working. To simplify troubleshooting it can be helpful to know which web [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,1],"tags":[14,38],"class_list":["post-7","post","type-post","status-publish","format-standard","hentry","category-customizing","category-uncategorized","tag-citrix","tag-storefront"],"translation":{"provider":"WPGlobus","version":"3.0.2","language":"de","enabled_languages":["en","de"],"languages":{"en":{"title":true,"content":true,"excerpt":false},"de":{"title":false,"content":false,"excerpt":false}}},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/blog.sachathomet.ch\/de\/wp-json\/wp\/v2\/posts\/7","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.sachathomet.ch\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.sachathomet.ch\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.sachathomet.ch\/de\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.sachathomet.ch\/de\/wp-json\/wp\/v2\/comments?post=7"}],"version-history":[{"count":2,"href":"https:\/\/blog.sachathomet.ch\/de\/wp-json\/wp\/v2\/posts\/7\/revisions"}],"predecessor-version":[{"id":968,"href":"https:\/\/blog.sachathomet.ch\/de\/wp-json\/wp\/v2\/posts\/7\/revisions\/968"}],"wp:attachment":[{"href":"https:\/\/blog.sachathomet.ch\/de\/wp-json\/wp\/v2\/media?parent=7"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.sachathomet.ch\/de\/wp-json\/wp\/v2\/categories?post=7"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.sachathomet.ch\/de\/wp-json\/wp\/v2\/tags?post=7"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}