Datasheet

“main” (Installation and Administration) 2004/6/25 13:29 page 531 #557
i
i
i
i
i
i
i
i
22
The Apache Web Server
The responsible Internet mechanism (such as the domain name system,
DNS) conveys the query to the domain, directing it to one or several com-
puters hosting the resource. Apache then delivers the actual resource
(in this example, the page index_us.html) from its file directory. In this
case, the file is located in the top level of the directory. However, resources
can also be located in subdirectories, as in http://www.suse.com/us/
business/services/support/index.html.
The file path is relative to the DocumentRoot, which can be changed in the
configuration file. Section 22.7.2 on page 537 describes how this is done.
22.1.4 Automatic Display of a Default Page
If no default page is specified, Apache automatically appends one of
the common names to the URL. The most frequently-used name for such
pages is index.html. This function, together with the actual page names
the server should use, can be configured as described in Section 22.7.2 on
page 538. In this example, http://www.suse.com is sufficient to prompt
the server to deliver the page http://www.suse.com/index_us.html.
22.2 Setting up the HTTP Server with
YaST
Apache 2 can easily be set up with the help of YaST, but some knowledge
about the subject is needed to set up a web server this way. After selecting
‘Network Services’ ‘HTTP Server’ in the YaST control center, you may
be prompted for the installation of some packages that are still missing. As
soon as everything is installed, YaST displays the configuration dialog.
In this dialog, first enable the HTTP service itself, which requires setting
the following three options: ‘Server Name’, ‘Server Administrator E-Mail’,
and ‘Listen on’. The last option is already set to the default of port 80. You
can then use ‘Add’ to set further options. Selecting ‘Edit’ enables changing
the value of the highlighted option. Selecting ‘Delete’ allows removing it
completely.
With ‘Advanced’, view the logs (‘Show Access Log’ and ‘Show Error Log’)
or specify the ‘Server Modules’ to load. The latter opens a dialog in which
to enable or disable modules by selecting ‘Toggle Status’ and add modules
by selecting ‘Add Module’.
531SUSE LINUX Enterprise Server