making a tweak to Apache2 default-server.conf to add FOOTER.html as a README directive

as root: 1) cp /etc/apache2/default-server.conf /etc/apache2/2018-08-31-default-server.conf-bak 2) vi /etc/apache2/default-server.conf 3) e.g. add: ReadmeName FOOTER.html --> grep -i readme /etc/apache2/default-server.conf ReadmeName README.html insert line --> ReadmeName FOOTER.html IndexIgnore README.html favicon.ico HEADER.html FOOTER.html readme.html footer.html header.html 4) create a custom script to stop, test, enable, start and check status: COMMANDS NEEDED: systemctl stop apache2 ; apachectl configtest ; systemctl enable apache2 ; systemctl start apache2 ; systemctl status apache2 (this last one is optional) vi /superluser/bin/restart-apache2 (NOTE: place all the commands on ONE line to minimize user impact) #!/bin/bash systemctl stop apache2 ; apachectl configtest ; systemctl enable apache2 ; systemctl start apache2 ; systemctl status apache2 5) --> sh /superluser/bin/restart-apache2 Syntax OK ● apache2.service - The Apache Webserver Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled; vendor preset: disabled) Active: active (running) since Fri 2018-08-31 12:43:05 PDT; 4ms ago Main PID: 7582 (httpd-prefork) Status: "Processing requests..." Tasks: 6 CGroup: /system.slice/apache2.service ├─7582 /usr/sbin/httpd-prefork -DSYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apach... ├─7590 /usr/sbin/httpd-prefork -DSYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apach... ├─7591 /usr/sbin/httpd-prefork -DSYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apach... ├─7592 /usr/sbin/httpd-prefork -DSYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apach... ├─7594 /usr/sbin/httpd-prefork -DSYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apach... └─7595 /usr/sbin/httpd-prefork -DSYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apach... Aug 31 12:43:05 yourservernamehere systemd[1]: Starting The Apache Webserver... Aug 31 12:43:05 yourservernamehere systemd[1]: Started The Apache Webserver.


JohnMeister.com Today's Date:

Simply Linux: Basics  Full Size Jeep Buyer's Guide Using BASH on Windows 10
Practical Suggestions for Microsoft Windows
Linux Tackles Microsoft
Video Course:
The Art of Linux System Administration, and a
Study Guide for the LPIC-2 Certification Exams.

-- O'Reilly Media author info
FULL SIZE JEEP

Buyer's Guide

SJ model Jeeps
"Jeep is America's
only real sports car."
-Enzo Ferrari


Mercedes, VW, and other Diesels
Nikon cameras
general tech info
AMSOIL product guide,
or, AMSOIL web, or 1-800-956-5695,
use customer #283461

Amsoil dealer since 1983

purchase AMSOIL and have it
installed locally in WA at:

- Fleet Services 425.355.4440 - Everett
- Midway Auto 360.668.7111 - Clearview/Snohomish
- Northland Diesel 360.676.1970 - Bellingham