Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
osug-doi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSUG
Pôle Numérique
osug-doi
Commits
a151103b
Commit
a151103b
authored
8 years ago
by
bourgesl
Browse files
Options
Downloads
Patches
Plain Diff
added mod_expires setup
parent
1781d2c9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/setup_apache.txt
+16
-1
16 additions, 1 deletion
doc/setup_apache.txt
with
16 additions
and
1 deletion
doc/setup_apache.txt
+
16
−
1
View file @
a151103b
...
...
@@ -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 !
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment