Datasheet

“main” (Installation and Administration) 2004/6/25 13:29 page 541 #567
i
i
i
i
i
i
i
i
22
The Apache Web Server
the variable HTTPD_SEC_PUBLIC_HTML accordingly. To enable the pub-
lishing of files, the variable must be set to yes. This results in the following
entry in the file /etc/httpd/suse_public_html.conf (which is inter-
preted by /etc/apache2/httpd.conf).
<IfModule mod_userdir.c>
UserDir public_html
</IfModule>
22.8 Using Apache
To display static web pages with Apache, simply place your files in the
correct directory. In SUSE LINUX, the correct directory is /srv/www/
htdocs. A few small example pages may already be installed there. Use
these pages to check if Apache was installed correctly and is currently
active. Subsequently, you can simply overwrite or uninstall these pages.
Custom CGI scripts are installed in /srv/www/cgi-bin.
During operation, Apache writes log messages to the file /var/log/
httpd/access_log or /var/log/apache2/access_log. These mes-
sages show which resources were requested and delivered at what time
and with which method (GET, POST, etc.). Error messages are logged to
/var/log/apache2.
22.9 Active Contents
Apache provides several possibilities for the delivery of active contents.
Active contents are HTML pages that are generated on the basis of vari-
able input data from the client, such as search engines that respond to the
input of one or several search strings (possibly interlinked with logical op-
erators like AND or OR) by returning a list of pages containing these search
strings.
541SUSE LINUX Enterprise Server