The Apache Web Server 121 Files

The web server files are located in the following directories (and their subdirectories):

• /etc/httpd/: Configuration files

• /srv/www/httpd/: Documents the web server provides (including all accompanying files)

The central configuration file for the web server is /etc/httpd/httpd.conf. For this to be started automatically when the computer is booted, the command earth:~ # insserv /etc/init.d/apache must be run.

The web server can also be started manually: the command rcapache (or /etc/init.d/apache) has the following parameters: start, stop, status, restart, and reload. On start-up, it is useful to be able to track the messages in the log files. This can best be done in another window with earth:~ # tail -f /var/log/httpd/*log

In the directory /etc/httpd/, there are a few files containing defaults made by SuSE. These files are included by means of an Include statement at the end of the file httpd.conf:

• /etc/httpd/suse_addmodule.conf

• /etc/httpd/suse_define.conf

• /etc/httpd/suse_include.conf

• /etc/httpd/suse_loadmodule.conf

• /etc/httpd/suse_public_html.conf

By default, Apache has three important log files available:

/var/log/httpd/rcapache.log In rcapache.log, all messages can be found concerning the start of the Apache server.

/var/log/httpd/access_log The file access_.log documents who accessed which pages and when. The evaluation of this file is described in Chapter 1.3 on page 31.

/var/log/httpd/error_log Errors that occur during the operation of the Apache server are recorded in error_log.

Was this article helpful?

0 0

Post a comment