locked
Extending the WHS remote access website RRS feed

  • Question

  • I did not see any information in the SDK about extending the WHS remote access website. It would be great if we were able to simply add tabs to the website like we are now able to do with the WHS console. Am I overlooking something, is this going to be added to the SDK later, or is it not going to be possible at all?

    Saturday, April 7, 2007 12:20 PM

Answers

  • You can add web sites to the initial page of the Remote Access site by modifying this file:

    C:\Inetpub\Remote\WebSites.xml

    There's more information about this in the SDK here. Smile
    Saturday, April 7, 2007 1:26 PM
    Moderator
  • Have you looked at the file itself? It's about as simple as can be. Take one of the samples (from <website... through </website>), copy it outside the comments, and modify it to suit.
    • The name parameter is the name that will be displayed on the WHS default home page (if you're modifying the one in the Home folder) or the Remote Access Home page (if modifying the one in the Remote folder),
    • The uri is the URL (relative to the current file if a local URL, absolute if a remote URL) of the link to be added.
    • The imageurl parameter is the URL of the image to be displayed. It must be 16x16, or WHS will stretch it.
    • The absolute parameter specifies whether the given URLs are absolute (start with http://...) or relative to the current web site.
    The file is parsed immediately when you save it. (Actually, I think it's parsed when someone browses to the home page of the site, but that's close enough for government work. Smile )
    Monday, April 30, 2007 5:00 AM
    Moderator
  • Likewise modifying this file

     

    C:\Inetpub\home\Websites.xml

     

    will add websites to the initial web page displayed prior to actually logging in.

     

    Saturday, May 5, 2007 6:52 AM

All replies

  • You can add web sites to the initial page of the Remote Access site by modifying this file:

    C:\Inetpub\Remote\WebSites.xml

    There's more information about this in the SDK here. Smile
    Saturday, April 7, 2007 1:26 PM
    Moderator
  • I knew I must've overlooked it. Thanks for pointing it out. Smile
    Saturday, April 7, 2007 2:01 PM
  • Just tried it... It actually creates a link to the site on the HOME tab, but doesn't create additional tab.

    Are you planing to automate the process of adding the actual TAB?

    Thank you.
    Thursday, April 26, 2007 5:34 AM
  • You can't create additional tabs on the WHS web site, or at least there's no indication of being able to do so in the SDK. All the SDK mentions is adding links, along with a bit of vague information about single sign-on.
    Thursday, April 26, 2007 11:29 AM
    Moderator
  • v-most,

     

    would you mind posting how you added the line to the websites.xml file? I am xml challanged and have looked at the link in the sdk, but can't seem to get it working.

     

    Also, is this file parsed when somewhen hits the site are on server start up? So in other words, do you need to bounce the webservice when you modify it?

     

    Also, the link you added to the home page, was it a virtual directory like specified in the sdk or did you create another site?

     

    any help you are anyone can give in this area, thanks in advance.

    Monday, April 30, 2007 12:57 AM
  • Have you looked at the file itself? It's about as simple as can be. Take one of the samples (from <website... through </website>), copy it outside the comments, and modify it to suit.
    • The name parameter is the name that will be displayed on the WHS default home page (if you're modifying the one in the Home folder) or the Remote Access Home page (if modifying the one in the Remote folder),
    • The uri is the URL (relative to the current file if a local URL, absolute if a remote URL) of the link to be added.
    • The imageurl parameter is the URL of the image to be displayed. It must be 16x16, or WHS will stretch it.
    • The absolute parameter specifies whether the given URLs are absolute (start with http://...) or relative to the current web site.
    The file is parsed immediately when you save it. (Actually, I think it's parsed when someone browses to the home page of the site, but that's close enough for government work. Smile )
    Monday, April 30, 2007 5:00 AM
    Moderator
  • Hi ken,

     

    I have looked at the file. Have you had a chance to try it? I have and I have experience problems.

     

    V-most, if you could post a sample it would be most appreciated.

     

    Thanks,

     

    Robert

    Monday, April 30, 2007 2:42 PM
  • @Robert

    Below is a sample of my file ( c:\Inetpub\remote\WebSites.xml) and how I added an external link. 


    I also have a screen shot of the output here:
    http://www.edholloway.com/data/WHSLinkSample.png

    Hope this helps.
    -Ed




    Code Snippet



    <?xml version="1.0" encoding="utf-8" standalone="yes" ?>

    <WebSites>
    <WebSite name="EdHolloway Dot Com" uri="http://www.EdHolloway.com" imageUrl="http://www.edholloway.com/favicon.ico" absolute="true">
      </WebSite>
    <!-- This is a Sample Template
      <WebSite name="OEM internal Website" uri="/OEM" imageUrl="/OEM/icon.png" absolute="false">
      </WebSite>
      <WebSite name="OEM external Website" uri="http://www.OEM.com" imageUrl="http://www.OEM.com/icon.png" absolute="true">
      </WebSite>
    -->
    </WebSites>



    Monday, April 30, 2007 5:48 PM
  • Hmm..Not sure if the forum is broke, but here goes try 3 on this message....

     

    @Robert

     

    Below is a copy of my XML file.  I also have a screenshot of the output here:

    http://www.edholloway.com/data/WHSLinkSample.png

     

    Hope this Helps.

     

    -Ed

     

     

    Code Snippet

    <?xml version="1.0" encoding="utf-8" standalone="yes" ?>

    <WebSites>
    <WebSite name="EdHolloway Dot Com" uri="http://www.EdHolloway.com" imageUrl="http://www.edholloway.com/favicon.ico" absolute="true">
      </WebSite>
    <!-- This is a Sample Template
      <WebSite name="OEM internal Website" uri="/OEM" imageUrl="/OEM/icon.png" absolute="false">
      </WebSite>
      <WebSite name="OEM external Website" uri="http://www.OEM.com" imageUrl="http://www.OEM.com/icon.png" absolute="true">
      </WebSite>
    -->
    </WebSites>

     

     

    Monday, April 30, 2007 6:18 PM
  • @Robert -

     

    Below is a copy of my XML file.  I also have a screenshot of the output here:

    http://www.edholloway.com/data/WHSLinkSample.png

     

    Hope this Helps.

     

    -Ed

     

     



    Code Snippet

    <?xml version="1.0" encoding="utf-8" standalone="yes" ?>

    <WebSites>
    <WebSite name="EdHolloway Dot Com" uri="http://www.EdHolloway.com" imageUrl="http://www.edholloway.com/favicon.ico" absolute="true">
      </WebSite>
    <!-- This is a Sample Template
      <WebSite name="OEM internal Website" uri="/OEM" imageUrl="/OEM/icon.png" absolute="false">
      </WebSite>
      <WebSite name="OEM external Website" uri="http://www.OEM.com" imageUrl="http://www.OEM.com/icon.png" absolute="true">
      </WebSite>
    -->
    </WebSites>

     

     

    Monday, April 30, 2007 6:22 PM
  • Sorry about the dupe posts - I kept getting a Page not found error on the post, and they were not showing up when I refreshed my browser.  Deleting any of the above posts deletes all of them for some reason, so I am just going to leave them alone.

     

     

    Monday, April 30, 2007 6:25 PM
  • Thanks Ed,

     

    That is just what I was looking for. I really appreciate it.

     

    Robert.

    Monday, April 30, 2007 9:05 PM
  • Ed how did you get that computers tab to show up? i only get shared folders.
    Thursday, May 3, 2007 7:51 AM
  • On the local LAN the Computers tab does not show up.  It does show up when you connect remotely. (At least this is the behavior I see)
    Thursday, May 3, 2007 12:00 PM
  • Likewise modifying this file

     

    C:\Inetpub\home\Websites.xml

     

    will add websites to the initial web page displayed prior to actually logging in.

     

    Saturday, May 5, 2007 6:52 AM
  • According to the sample in the XML file, I should be able to point to an internal site as well, right?  Or am I misunderstanding?  I wanted to point a link to my Sharepoint site and can't seem to get it to work over the web.
    Wednesday, May 23, 2007 7:44 PM
  • That is correct - if your SP server is off the same base URL as your WHS site.  If you are not sure, I'd just test it with an external link and the full URL to your SP server.  I am not sure that there is any added value in using internal over external here.

    Wednesday, May 23, 2007 9:13 PM
  •  

    tag Wink
    Saturday, November 24, 2007 3:30 AM
    Moderator