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
- Add the following lines to the httpd.conf file under the server's root
directory:
AddType .ram audio/x-pn-realaudio binary
AddType .rpm audio/x-pn-realaudio-plugin binary
AddType .ra audio/x-pn-realaudio binary
AddType .rm audio/x-pn-realaudio binary
- Reinitialize the Web server.
EMWAC HTTPS (Windows NT Only)
- In Control Panel, start the HTTP server applet.
- Click New Mapping.
- In the Extension edit box, type the filename extension:
RAM<//TT>
- In the Mime Type edit box, type the full MIME type:
audio/x-pn-realaudio
- Click OK.
- Repeat Steps 3 and 4, using the file extension:
RPM and the MIME type:
audio/x-pn-realaudio-plugin
- Reinitialize the Web server.
Mac HTTP and HTTPD4Mac Servers
- 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: *
- 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:
- Log on as Administrator.
- Start Regedt32.
- Click the entry:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\ Services\InetInfo\Parameters\MimeMap
- On the Edit menu select Add Value.
- In the Add Value box, type:
audio/x-pn-realaudio-plugin,rpm,,<
- In the Data Type box select:
REG_SZ
- Click OK.
- Leave the String box blank and click OK.
- Repeat Steps 4 through 7. For Step 5, enter:
audio/x-pn-realaudio,ram,,<
NCSA HTTPD (v. 1.3 and 1.4) Server
- In the file srm.conf in the SERVER_ROOT/conf subdirectory, add the
following lines:
- AddType audio/x-pn-realaudio .ram
AddType audio/x-pn-realaudio-plugin .rpm
- AddType audio/x-pn-realaudio .ra
AddType audio/x-pn-realaudio .rm
- Reinitialize the Web server.
Netscape Netsite Server
- Add the following to the MIME.types file:
type=audio/x-pn-realaudio exts=ram
type=audio/x-pn-realaudio-plugin exts=rpm
- 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
- 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
- Start the Admin program for the Webstar server.
- On the Configure menu, click Suffix Mapping.
- 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: *
- Click the Add button to update the MIME types directory.
- 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
- 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
- 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.