
Serving Real Media |
Now that you have successfully installed and tested your RealServer, you are ready to serve Real
media content from your web site.
If your Virtual Server was set up later than December 15, 1997 then your ~/www/conf/mime.types file includes the necessary MIME types. If your Virtual Server was set up prior to December 15, 1997 then simply add the following two lines to your ~/www/conf/mime.types file:
audio/x-pn-realaudio ram rm ra audio/x-pn-realaudio-plugin rpm
If you download the ~/www/conf/mime.types file to your local computer using FTP, be sure you upload it back to your Virtual Server in ASCII format. An alternative to editing the ~/www/conf/mime.types file is to simply copy the ~/www/conf/mime.types file from the /usr/local/contrib directory on your Virtual Server host machine. To do this type:
% cp /usr/local/contrib/mime.types ~/www/conf
NOTE: You will
need to restart your web server after making
changes to the mime.types file. Use the restart_apache
command: % restart_apache |
FreeBSD
~/usr/local/realserverg2/Content
BSD/OS
~/usr/local/pnserver-VERSION/content
These directories are the "BasePath" where RealServer looks for Real media files. You can change these by modifying your RealServer server.cfg file. Be sure to FTP any Real media files in BINARY mode (not ASCII mode).
pnm://YOUR-DOMAIN.NAME/MEDIAFILE.rm
Change YOUR-DOMAIN.NAME to the domain name of your Virtual Server and MEDIAFILE to the name of the Real media file you uploaded to your content directory in the previous step.
<a href="mediafile.ram"> <a href="/support/addonhelp/multimedia/realserver/media/sampleaudio.ram">