This article describes how to hide file share and website panes from view, to give NetScaler Gateway clientless access page a look and feel similar to Web Interface.
NetScaler Gateway SSL VPN virtual server configured for Clientless Access
NetScaler Gateway Administrator's guide for the corresponding version
SFTP access using WinSCP or similar application
OR
Add the following lines at the end of "/var/netscaler/logon/themes/Default/css/base.css" file (position does not matter):
#ctl00_fileSharesContainerCell{
display:none;
}
#ctl00_webSitesContainerCell{
display:none;
Add the following lines at the end of "/var/netscaler/gui/vpn/images/style.css" file (position does not matter):
#id_FileTransfer { display: none; }
Also add the following lines to the same file (/var/netscaler/gui/vpn/images/style.css):
# ctl00_fileShares_mainDiv{ display: none; }
On NetScaler Gateway, locate the homepage.html file at /netscaler/portal/templates/homepage.html:
To hide the web sites panel, search for webSites_mainDiv and add style="display:none":
OLD
<DIV class=NUI_ContentFrame id=ctl00_webSites_mainDiv>
NEW
<DIV class=NUI_ContentFrame id=ctl00_webSites_mainDiv style="display:none">
To hide the File Shares panel, search for fileShares_mainDiv and add style="display:none":
OLD
<DIV class=NUI_ContentFrame id=ctl00_fileShares_mainDiv>
NEW
<DIV class=NUI_ContentFrame id=ctl00_fileShares_mainDiv style="display:none">
To hide the Applications panel, search for applications_mainDiv and add style="display:none":
OLD
<DIV class=NUI_ContentFrame id=ctl00_applications_mainDiv>
NEW
<DIV class=NUI_ContentFrame id=ctl00_applications_mainDiv style="display:none">
To resize the first panel, search for applicationsContainerCell and make the following change:
OLD
style="BORDER-RIGHT: #999999 1px solid; BORDER-TOP: #999999 1px solid; BORDER-LEFT: #999999 1px solid; WIDTH: 33%; BORDER-BOTTOM: #999999 1px solid" align=middle>
NEW
style="BORDER-RIGHT: #999999 1px solid; BORDER-TOP: #999999 1px solid; BORDER-LEFT: #999999 1px solid; WIDTH: 100%; BORDER-BOTTOM: #999999 1px solid" align=middle>
All files in /netscaler/portal/ are overwritten upon a restart or power cycle. You must create a script that runs at startup to copy the modified files back to this location. The nsafter.sh or rc.netscaler shell scripts can be created or modified to accomplish this.
For example:
> shell # mkdir /var/mods # cp /netscaler/portal/templates/homepage.html /var/mods/homepage.html.mod # echo cp /var/mods/homepage.html.mod /netscaler/portal/templates/homepage.html >> /nsconfig/rc.netscaler
See also CTX118305 ‑ How to Customize Access Gateway Enterprise Edition Logon Page