Starting HTTP service
Procedure for starting HTTP service
To start HTTP service on your filer, follow these steps:
|
Step
|
Action
|
|---|
|
1
|
Enable the httpd daemon by entering the following command:
options httpd.enable on
|
|
2
|
Use the following command syntax to specify the root directory that contains the files and directories to be read by HTTP clients:
options httpd.rootdir directory
For example, if the root directory is /vol/vol0/home/users/pages, enter the following command:
options httpd.rootdir /vol/vol0/home/users/pages
|
|
3
|
If you want to limit the size of the /etc/log/httpd.log log file to other than the default of 2,147,483,647 bytes (2 GB minus 1 byte), use the following command:
options httpd.log.max_file_size bytes
|
|
4
|
Make a copy of /etc/httpd.mimetypes.sample and name the copy /etc/httpd.mimetypes.
If the /etc/httpd.mimetypes file is missing, the HTTP client uses the information in /etc/httpd.mimetypes.sample.
|
Note: If you want these options to remain active after rebooting, you must add them to the /etc/rc file.
The procedure for starting HTTP service is now complete, and clients can display text files under the root directory by using a Web browser. If the filer will transfer files other than text files, for example, image files and audio files, follow the instructions in "Specifying MIME Content-Type values" to configure your filer so that the appropriate MIME Content-Type header is sent with each file transferred.
Procedure for testing HTTP service
To test the filer's HTTP service, follow these steps.
|
Step
|
Action
|
|---|
|
1
|
Create an HTML file in the root directory for HTTP. For example, create a file named myfile.html in the HTTP root directory, which is /vol/vol0/home/users/pages, assuming that the HTML root directory is /vol/vol0/home/users/pages.
|
|
2
|
Start a Web browser on a client and specify the URL of the HTML file in the browser.
For example, if your filer is toaster and the root directory for HTTP is /vol/vol0/home/users/pages, enter this URL:
http://toaster/myfile.html
The path component of the URL is a path name relative to the HTTP root. Do not specify the complete path name to the file in the URL.
|
Note: If the URL names a directory, for example, http://toaster/home/pages, the filer automatically tries to transfer the index.html file within the directory. If index.html does not exist, the filer returns "Error 404. No such file or directory."
Copyright © 1999, Network Appliance, Inc. All rights
reserved.
Part No. 210-02334
File: http1.htm
Last updated: 02/24/99 12:16:45