Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Table of Contents

...

Code Block
[snip script]
#-------------------------------------------------------------------------
# start mini_httpd and restart it, if it is killed
#-------------------------------------------------------------------------
cd $docroot
{ trap "" 1
  while true; do
    /usr/local/sbin/mini_httpd -D -p $HTTPD_PORT -u root -c "**.cgi" 2>&1 | $log
  done
} &
cd /

#-------------------------------------------------------------------------
# start des 2. Webservers auf port 80
#-------------------------------------------------------------------------
cd /usr/local/htdocs2        # Verzeichniss in dem die HTML Seite zu finden ist
/usr/local/sbin/mini_httpd -u root -c "*.cgi" -p 80
cd /

Wobei der normale, erste Mini-HTTPD für die Statusanzeige in der httpd.txt auf Port 81 zu konfigurieren ist. Der 2 Mini-HTTPD läuft auf Port 80.:

Code Block
#------------------------------------------------------------------------------
# Optional package: HTTP-Server for Monitoring
#------------------------------------------------------------------------------
OPT_HTTPD='yes'                  # install mini web server: yes or no
HTTPD_PORT='81'                 # http port, see also FIREWALL_DENY_PORT_x !

Port 80 ist in der base.txt für Zugriffe von aussen freizuschalten:

Code Block
FIREWALL_DENY_PORT_3='54:79    REJECT'  # privileged ports: reject or deny
FIREWALL_DENY_PORT_4='81:112    REJECT' # 80 für httpd-2 geöffnet

...