Video Screencast Help
Symantec to Separate Into Two Focused, Industry-Leading Technology Companies. Learn more.
Endpoint Management Community Blog

Simple DNS and Web Redirect for Web Pages

Created: 24 Jul 2006 • Updated: 05 Jun 2007
CraigM's picture
0 0 Votes
Login to vote

Two things are necessary to make your life and your end users' lives easier when trying to access the Helpdesk web consoles:

  1. DNS "CNAME" entries for each web redirect
  2. A default.asp web page that will send a browser to the correct URL depending on what the user typed (and was routed by DNS) in the browser

For example, we needed 2 different web pages for Helpdesk on the same server. It is assumed that Helpdesk users (both endusers and workers) don't want to type out: "http://servername/aexhd/winuser" or http://servername/aexhd/worker".
Instead, they want to be able to just type "help" for the winuser console and "worker" for the worker console.

You could redirect to the default web page with a single web page, but since we wanted two, we needed to use a little logic.

First, create your DNS CNAME entries using the FQDN (fully qualified domain name) and the helpdesk server's IP address for both. The first should be "help" and the second should be "worker".

Next, create a default.txt file in the c:\inetpub\wwwroot\ directory.
In that file type (or copy / paste) the following:

Dim sAlias
sAlias = Request.ServerVariables("SERVER_NAME")
'just add a new case condition for redirect
'we'll default to helpdesk
Select Case LCase(sAlias)
	Case "worker"
	Case "help"
	Case Else
End Select

[We are defaulting to the winuser console.]

Then rename the default.txt file to default.asp.

Test your work by opening a new browser and typing either "worker" or "help". These should redirect to different pages of the Helpdesk server.

You can add to the entries as necessary.