Simple DNS and Web Redirect for Web Pages
Two things are necessary to make your life and your end users' lives easier when trying to access the Helpdesk web consoles:
- DNS "CNAME" entries for each web redirect
- 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"
Response.Redirect("/AeXHD/worker/")
Case "help"
Response.Redirect("/AeXHD/winuser/")
Case Else
Response.Redirect("/AeXHD/winuser/")
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.
The Endpoint Management Community Blog is the perfect place to share short, timely insights including product tips, news and other information relevant to the Endpoint Management community. Any authenticated Connect member can contribute to this blog.