Library Table of Contents Index Previous Next Comments

Starting the HTTP service

About HTTP service  Top

You can make the filer an HTTP server by adding HTTP service to it. After you start the HTTP service, clients can display files in the directory designated as root for the HTTP service by using a Web browser.

Starting HTTP service on the filer  Top

To start HTTP service on your filer, complete the following steps.

Note
If you want the HTTP service to remain active after rebooting, you must add them to the /etc/rc file.

Step

Action

1

Enable the httpd daemon by entering the following command:

options httpd.enable on
2

Enter the following command to specify the root directory that contains the files and directories to be read by HTTP clients:

options httpd.rootdir directory

directory is the root directory name.

Example

If the root directory is /vol0/home/users/pages, you use the following command:

options httpd.rootdir /vol0/home/users/pages
3

If you want to change the maximum size of the /etc/log/httpd.log file from the default of 2,147,483,647 bytes (2 GB minus 1 byte), enter the following command:

options httpd.log.max_file_size bytes
4

Make a copy of the /etc/httpd.mimetypes.sample file and name the copy /etc/httpd.mimetypes.

If the /etc/httpd.mimetypes file is missing, the HTTP client uses the information in the /etc/httpd.mimetypes.sample file.

Library Table of Contents Index Previous Next Comments