echo "Updating etc/rc.config..."
if [ -x bin/fillup ] ; then
bin/fillup -q -d = etc/rc.config var/adm/fillup-templates/rc.config.apache
else
echo "ERROR: fillup not found. This should not happen. Please compare"
echo "etc/rc.config and etc/rc.config.apassl and update by hand."
fi
mkdir -p var/log
touch var/log/httpd.access_log
touch var/log/httpd.error_log
if test -e httpd; then
mkdir -p var/adm/notify/messages
cat << EOT > var/adm/notify/messages/apache-changes
Hi,
die Apache-Konfiguration hat sich (wiedermal...) veraendert. Die
den Server betreffenden Dateien finden sich jetzt in folgenden
Verzeichnissen:
/etc/httpd -> Konfigurationsdateien
/var/log -> Protokolldateien
/var/run/httpd.pid -> PID des Servers
/usr/local/httpd -> Server-Root
/sbin/init.d/apache -> Start/Stop-Skript
The Apache-Configuration has changed. Please look into these directories
to find server related files:
/etc/httpd -> Configfiles
/var/log -> Logfiles
/var/run/httpd.pid -> Server-PID
/usr/local/httpd -> Server-Root
/sbin/init.d/apache -> Start/Stop-Script
Ciao,
Rolf H.
EOT
fi
if [ ! -f usr/local/httpd/htdocs/index.html ] ; then
echo "installing example page..."
cat << EOT > usr/local/httpd/htdocs/index.html
Apache HTTP Server - Beispielseite
Der Apache WWW Server
Diese Seite soll nur als Beispiel dienen.
Die Dokumentation zum Apache-Server finden Sie hier.
Das S.u.S.E. Hilfesystem finden Sie (insofern installiert) hier: Deutsch Englisch.
Weitere Infos zu Apache finden Sie unter den folgenden (nicht lokalen)
Hyperlinks:
The Apache WWW Server
This page is an example only.
The documentation for the Apache WWW server can be found here.
The S.u.S.E. on-line help system can be found (if installed) here: German English.
EOT
fi
if [ ! -f usr/local/httpd/htdocs/robots.txt ] ; then
echo "installing robots page..."
cat << EOT > usr/local/httpd/htdocs/robots.txt
# exclude help system from robots
User-agent: *
Disallow: /hilfe/ /manual/ /support-db/ /gif/
# but allow htdig to index our doc-tree
User-agent: susedig
Disallow:
EOT
fi
# ---------------------------------------------------------------------------