|
|
MIME allows web developers to include documents other than HTML in
their web pages. It is a standard way of associating other software
(called helper applications) to file types. When you install the DjVu
plug-in, this is automatically done for your browser. However, if you
want to view DjVu files using direct linking, your web server must
also support the MIME types. The DjVu MIME types are:
In order for the web server to correctly handle DjVu files, it must be
configured to understand the MIME type.
If you do not have access to configure your web server, you need to
embed the DjVu document in your web page as described in the previous
chapters, or you need to contact your provider and instruct them to
configure their web servers to support the new MIME type. We have
provided a form letter to help you do
this.
The following instructions show how to configure many of the popular
web servers for the DjVu MIME type. If your web server is not listed,
consult your web server documentation.
[IIS 4.0] -
[Apache] -
[NCSA HTTPd] -
[O'Reilly Website] -
[CERN HTTPD] -
[Roxen Challenger/Spinner] -
[Netscape] -
[EMWAC] -
[Webstar] -
[Glaci HTTPd]
- Open the Microsoft Management Console (MMC).
- Right-click the Computer and choose Properties to open the Master properties for the server.
- Select the File Types button to configure Multipurpose Internet Mail Extensions (MIME) mappings.
- Click the New Type button in the File Types dialog box. In the File Type dialog box, type the following extension:
-
- In the Content Type (MIME) box, type:
-
- Click OK to commit to your changes.
- Click the New Type button in the File Types dialog box. In the File Type dialog box, type the following extension:
-
- In the Content Type (MIME) box, type:
-
- Click OK to commit to your changes, click OK to close the File Types dialog box, and then click OK to close the Master Properties dialog box.
For System Administrators[Note 1]
- Using a text editor, edit the file specified by the TypesConfig variable in
the file [apache_root]/etc/httpd/conf/srm.conf usually [apache_root]/etc/mimes.types. Add the following line
at the end of the file or where the other image/ entries are found[Note 2]:
-
- Save your changes, exit the file, and restart Apache.
For Users
- Using a text editor, create a file named .htaccess in the same directory as your DjVu files.
- Add the following line to the file:
| AddType image/x.djvu djvu djv |
- Using a text editor, edit the file [httpd_root]/conf/mimes.types. Add the following line at the end of the file or where the other image/ entries are found[Note 2]:
-
- Save your changes, exit the file, and restart NCSA HTTPd.
- Click on the ORA Website yellow gear icon (right by the clock on the Taskbar), select Server Properties, and choose the Mapping tab.
- In the List Selector section, select the Content Types button.
- In the File Extension (class) field, type:
-
- In the MIME Content Type field, type:
-
- Click Add, and then click Apply.
- In the File Extension (class) field, type:
-
- In the MIME Content Type field, type:
-
- Click Add, and then click Apply. Click OK. Restart O'Reilly Website.
- Using a text editor, edit the file [httpd_root]/conf/mimes.types. Add
the following line at the end of the file or where the other AddType ... image/
entries are found[Note
2]:
AddType .djvu image/x.djvu binary
AddType .djv image/x.djvu binary |
- Save your changes, exit the file, and restart CERN HTTPD.
- Use a text editor to edit the file [webserver_root]/etc/extensions. Add the following lines to the end of the file:
djvu image/x.djvu
djv image/x.djvu |
- Save your changes, exit the file, and restart Roxen Challenger/Spinner.
- Use a text editor to edit the file [netscape-server_root]\config\mime.types. Add the following line at the end of the file or where the other type= image/ entries are found[Note 2]:
| type= image/x.djvu exts=djvu,djv |
- Save your changes, exit the file, and restart the Netscape web server.
- Open the HTTP server Control Panel applet and click the New Mapping button.
- Type the following into the extension field:
-
- Type the following into the text box for MIME type:
-
- Click OK.
- Click the New Mapping button.
- Type the following into the extension field:
-
- Type the following into the text box for MIME type:
-
- Click OK, close the HTTP server Control Panel applet, and restart the EMWAC for NT web server.
- Choose the Suffix Mapping item in the WebSTAR Admin Settings window to open the Suffix Mapping Table.
- To make a new Suffix Mapping entry, decide where you want it to be in the list. WebSTAR will use the first entry it can find. Then select the entry before the new entry, and click the New button.
- Set Action to BINARY,
set File Suffix to .djvu,
set File Type to *,
set MIME type to image/x.djvu,
set Creator to *,
and then click Add.
- Set Action to BINARY,
set File Suffix to .djv,
set File Type to *,
set MIME type to image/x.djvu,
set Creator to *,
and then click Add.
- Click Update to apply the changes.
- Using a text editor, edit the file [glaci_root]\mimetype.cfg where [glaci_root] is usually
sys:\etc. Add the
following line at the end of the file or where the other image/ entries are
found[Note 2]:
-
- Save the changes to the file.
|