Configuring Web Servers to Work with RealServer

RealServer works with any Web server that supports configurable MIME types. Setting the correct MIME type makes the user's Web browser play the contents of a media file with a RealPlayer rather than download the contents of the file.

Your Web server needs to define the following MIME types:

audio/x-pn-realaudio (files with a .ra, .rm or .ram file extension)
audio/x-pn-realaudio-plugin (files with a .rpm file extension)

The procedure for associating media files with these MIME types varies from one Web server to another. If the Web server is on the RealServer machine, this is done by installers on Internet Explorer and Netscape on Windows NT, and on Apache, Netscape and NCSA on UNIX. The following procedures tell how to add MIME types to some common brands of Web servers. If you have questions, or if your Web server is not listed here, please consult your Web server documentation or the online documentation at the RealNetworks Web site.


CERN HTTPD (v.3.0) Server

  1. Add the following lines to the httpd.conf file under the server's root directory:
  2. AddType .ram audio/x-pn-realaudio binary
    AddType .rpm audio/x-pn-realaudio-plugin binary
  3. AddType .ra audio/x-pn-realaudio binary
    AddType .rm audio/x-pn-realaudio binary
  4. Reinitialize the Web server.


EMWAC HTTPS (Windows NT Only)

  1. In Control Panel, start the HTTP server applet.
  2. Click New Mapping.
  3. In the Extension edit box, type the filename extension:
    RAM<//TT>
  4. In the Mime Type edit box, type the full MIME type:
    audio/x-pn-realaudio
  5. Click OK.
  6. Repeat Steps 3 and 4, using the file extension:
    RPM and the MIME type:
    audio/x-pn-realaudio-plugin
  7. Reinitialize the Web server.


Mac HTTP and HTTPD4Mac Servers

  1. Enter the following information into your configuration file in the format appropriate for your server:
    Action: TEXT
    File Suffix: .ram
    File Type: * MIME
    Type: audio/x-pn-realaudio
    Creator: *
  2. Repeat with the File Suffix:
    .rpm
    and the MIME Type:
    audio/x-pn-realaudio-plugin


Microsoft Internet Information Server (Windows NT Only)

MIME type configuration is done in the Windows NT registry. To edit the registry:

  1. Log on as Administrator.
  2. Start Regedt32.
  3. Click the entry:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\ Services\InetInfo\Parameters\MimeMap
  4. On the Edit menu select Add Value.
  5. In the Add Value box, type:
    audio/x-pn-realaudio-plugin,rpm,,<
  6. In the Data Type box select:
    REG_SZ
  7. Click OK.
  8. Leave the String box blank and click OK.
  9. Repeat Steps 4 through 7. For Step 5, enter:
    audio/x-pn-realaudio,ram,,<


NCSA HTTPD (v. 1.3 and 1.4) Server

  1. In the file srm.conf in the SERVER_ROOT/conf subdirectory, add the following lines:
  2. AddType audio/x-pn-realaudio .ram
    AddType audio/x-pn-realaudio-plugin .rpm
  3. AddType audio/x-pn-realaudio .ra
    AddType audio/x-pn-realaudio .rm
  4. Reinitialize the Web server.


Netscape Netsite Server

  1. Add the following to the MIME.types file:
  2. type=audio/x-pn-realaudio exts=ram
    type=audio/x-pn-realaudio-plugin exts=rpm
  3. Add the following line to the Server's main configuration file (called magnus.conf in the examples given in the Netsite documentation):
    Init fn=load-types mime-types=mime.types
  4. Reinitialize the Web server.


O'Reilly Website NT Server

Use the admin tool on the mapping page to change the content type by entering the following commands:

.ram audio/x-pn-realaudio
.rpm audio/x-pn-realaudio-plugin
.ra audio/x-pn-realaudio
.rm audio/x-pn-realaudio


Webstar and Webstar PS

  1. Start the Admin program for the Webstar server.
  2. On the Configure menu, click Suffix Mapping.
  3. Enter the MIME type information into its associated fields exactly as shown in the following example (these fields are case sensitive):
    Action: TEXT
    File Suffix: .ram
    File Type: * MIME
    Type: audio/x-pn-realaudio
    Creator: *
  4. Click the Add button to update the MIME types directory.
  5. Repeat Steps 3 and 4, using the File Suffix:
    .rpm
    and the MIME Type:
    audio/x-pn-realaudio-plugin


Spinner 1.0b12 - 1.0b15 / Roxen 1.0

  1. Point your browser to the following URL:
    http://<server_name>:18830/Configurations/Gnats/Contenttypes/ Extensions?40
    where:
    <server_name> is the name of computer running your Web server
    <18830> is the default administration server port; change this port number to your administration server port if necessary
  2. Type the MIME types in the dialog box.


Apache 1.1.1

Apache comes preconfigured, but the MIME type for RealAudio and RealVideo files needs to be changed from audio/x-realaudio to audio/x-pn-realaudio. MIME types are normally stored in /usr/local/etc/httpd/conf.

© 1997 RealNetworks, Inc.