
2.3 srm.conf 27
2.3 srm.conf
The srm.conf file defines the server’s name space, how requests are ser-
viced and how request results areformatted.
2.3.1 Important Directives in srm.conf
DocumentRoot TheDocumentRoot isthedirectorywhich contains most
of the HTML files which will be served in response to requests. The
default DocumentRoot for both the non-secure web server and se-
cure web server is /home/httpd/html. For example, the server
might receive a request for the following document:
http://www.yourserver.com/foo.html
Theserverwill lookforthefollowing requestinthedefaultdirectory:
/home/httpd/html/foo.html
If you want to change the DocumentRoot so that it is no longer
shared by the secure web server and the non-secure web server, see
section 2.6 on page 36 for instructions.
UserDir UserDir is the name of the sub-directory within each user’s
home directorywhere they should placepersonal HTMLfiles which
are to be served by the web server. By default, the subdirectory is
public html. For example, the server might receive the following
request:
http://www.yourserver.com/˜username/foo.html
The server would look for the file:
/home/username/public_html/foo.html
In the above example, /home/username is the user’s home direc-
tory.
Comentários a estes Manuais