Skip to content

Commit

Permalink
MP:
Browse files Browse the repository at this point in the history
  • Loading branch information
clecap committed Nov 2, 2024
1 parent 54505b4 commit bc2d71d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ ServerTokens Prod
ServerSignature Off

# Allow pickup of environment variable for apache name
PassEnv APACHE_SERVER_NAME
ServerName ${APACHE_SERVER_NAME}

DocumentRoot "/var/www/html"
Expand Down
14 changes: 14 additions & 0 deletions images/dante-wiki/src/etc/logrotate.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# packages drop log rotation information into this directory
include /etc/logrotate.d

/var/log/apache2/* {
weekly # Rotate logs weekly
rotate 4 # Keep 4 rotated logs
compress # Compress rotated logs
create # Create new empty log files after rotating old ones
missingok # Ignore if the log file is missing
notifempty # Don't rotate if log file is empty
postrotate
/usr/sbin/apache2ctl graceful > /dev/null 2>&1 || true
endscript
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,7 @@ printf "APACHE_SERVER_NAME = ${APACHE_SERVER_NAME}\n"
# opportunity to exec into the then stopped container

printf "\n*** run-apache-no-cache.sh: Starting apache NO-CACHE ...\n"
sudo apachectl \
-D NO_CACHE \
-D USE_APACHE_PASSWORD \
-D APACHE_AUTH_NAME \
-D APACHE_AUTH_USER \
-k start &
sudo apachectl -D NO_CACHE -k start &
printf "DONE with starting apache\n"

printf "${GREEN}*** EXITING run-apache-no-cache.sh\n\n"

0 comments on commit bc2d71d

Please sign in to comment.