Installationsskript des Paketes "apache"


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 [ "$RPM_PACKAGE_NAME" = "apassl" ]; then
	touch var/log/ssl_scache.dir
	touch var/log/ssl_scache.pag
	chown wwwrun var/log/ssl_scache.{dir,pag}
	chmod 600    var/log/ssl_scache.{dir,pag}
fi
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 SuSE Hilfesystem finden Sie (insofern installiert) hier: Deutsch Englisch.

An diesen Stellen finden Sie Testseiten für embedded Perl und PHP3.

Weitere Infos zu Apache finden Sie unter den folgenden (nicht lokalen) Hyperlinks:

---

Apache HTTP Server Project

Apache Week

SuSE GmbH

---

The Apache WWW Server


This page is an example only. The documentation for the Apache WWW server can be found here.

The SuSE on-line help system can be found (if installed) here: German English.

Here you can find examples for embedded Perl and PHP3.

---

Powered by SuSE Linux Powered by Apache

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 # ---------------------------------------------------------------------------


(c) S.u.S.E. - Letzte Änderung: 23.03.99 02:52;