WWW SETUP ========= Simeon Warner - 6Jul98 PHILOSOPHY ---------- Since we are using RedHat Linux and there are no plans to move away from that at the moment, I have tried to make as few changes as possible to the default web setup . My aim is to use the web to provide various montioring utilites and documentation for PoP. The configuration files have been changed to server-parse all HTML pages so that server side includes can be used. STANDARD RedHat WEB SETUP ------------------------- The default page shown is /home/httpd/html/index.html URL: http://machine.domain/ The default script directory is /home/httpd/cgi-bin/ URL: http://machine.domain/cgi-bin Apache configuration files are stored in /etc/httpd/conf/ Logs of all httpd activity are kept in /var/log/httpd/ Changing the configuration -------------------------- Edit the config files in /etc/httpd/conf/ and then distribute using: pop.copy /etc/httpd/conf/httpd.conf pop.copy /etc/httpd/conf/access.conf pop.copy /etc/httpd/conf/srm.conf To make changes in the configuration files take effect we must HUP each server: pop.exec "killall -HUP httpd" MONITORING SCRIPTS ================== See http://ice.syr.edu/~simeon/pop/monitoring.html Global: http://pop/cgi-bin/pop.loadavg http://pop/cgi-bin/pop.uptime.now http://pop/cgi-bin/pop.uptime.lastlog Per node: http://pop05/cgi-bin/node.uptime http://pop05/cgi-bin/node.motd OTHER PAGES =========== On each node there is a default page identifying the node http://pop05/ The files on each node are /home/httpd/html/index.html (and some image files under html/images/..) The source files on pop01 are /home/httpd/html_src/index.html /home/httpd/html_src/header.html /home/httpd/html_src/footer.html These cane be copied with pop.copysub /home/httpd/html_src/index.html /home/httpd/html/index.html pop.copy /home/httpd/html_src/header.html /home/httpd/html/header.html pop.copy /home/httpd/html_src/footer.html /home/httpd/html/footer.html ------------------------------------------------------------------------ Simeon Warner - 6Jul98