You are here: Helix Administrator > Server Setup > URL Aliasing > URL Alias Example

URL Alias Example

Suppose that the following example is a path to a file located on the physical disk of a Helix Mobile Server:

C:\Program Files\Real\Helix Server\Content\music\pop\video1.3gp

In this sample, video1.3gp resides a few subdirectories below the Content directory. The following might be the unaliased URL for this file:

rtsp://helixserver.example.com/music/pop/video1.3gp

Using aliasing, you can assign the content music/pop/video1.3gp to any value, such as the following:

Content:

music/pop/video1.3gp

Alias:

example.3gp

Helix Mobile Server would then play the video1.3gp clip when a viewer requested the following URL:

rtsp://helixserver.example.com/example.3gp

Helix Mobile Server replaces only the alias portion of the URL. If you enter characters in the URL before or after the alias, that part of the URL remains unchanged. For example, consider the following changes in the preceding resource-to-alias value pair:

Content:

music/pop/

Alias:

example

For Helix Mobile Server to play video1.3gp, you would use the following URL:

rtsp://helixserver.example.com/example/video1.3gp

Here, Helix Mobile Server replaces the alias with the exact characters in the resource, leaving the file name intact. If the preceding URL did not contain the file name, the resolved alias would lead to a subdirectory, not a clip.

Preventing Alias Blind Spots

You need to be careful to avoid content blind spots—or content that cannot be accessed by a URL—by using aliases that match resources. Suppose that you had two files named video.3gp and audio.3gp in Helix Mobile Server's Content directory, and you created the following alias/resource pair:

Content:

audio.3gp

Alias:

video.3gp

The following URL would always play the audio.3gp file:

rtsp://helixserver.example.com/video.3gp

You would not be able to form a URL to play video.3gp because Helix Mobile Server would always translate the characters video.3gp into audio.3gp. The only way to write a URL to play the actual video.3gp clip would be to create an alias that uses the video.3gp clip as its resource.

 


Helix Universal Mobile Server Version 14.2 Online Help
Revision Date: Tuesday, March 15, 2011
©2011 RealNetworks, Inc., http://www.realnetworks.com