From a151103bcc7d9ff44598472ebbc6fdb5c860eb1f Mon Sep 17 00:00:00 2001 From: bourgesl <bourges.laurent@gmail.com> Date: Wed, 8 Mar 2017 18:56:55 +0100 Subject: [PATCH] added mod_expires setup --- doc/setup_apache.txt | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/doc/setup_apache.txt b/doc/setup_apache.txt index c085212..121a6e6 100644 --- a/doc/setup_apache.txt +++ b/doc/setup_apache.txt @@ -88,11 +88,26 @@ B. Edit /etc/apache2/apache2.conf C. Edit /etc/apache2/sites-enabled/000-default.conf -TODO: use mail alias: + 1.Define the document root + + TODO: use mail alias: ServerAdmin webmaster@localhost DocumentRoot /srv/doi/osug-doi/www + 2. Add mod_expires directives: + # mod_expires: + # enable expirations + ExpiresActive On + + ExpiresDefault "access plus 1 week" + ExpiresByType text/html "access plus 1 day" + + 3. Enable mod_expires: + a2enmod expires + service apache2 restart + + D. Customize logrotate on debian Debian 8 uses logrotate daily with 14 days only ! -- GitLab