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 messages 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.