Blame doc/mrtg-webserver.pod

Packit 667938
=head1 NAME
Packit 667938
Packit 667938
mrtg-webserver - hints for web server configuration
Packit 667938
Packit 667938
=head1 SYNOPSIS
Packit 667938
Packit 667938
If you want people to actually see the results
Packit 667938
of your network monitoring efforts you will need
Packit 667938
a webserver.
Packit 667938
Packit 667938
This document lists some configuration hints for
Packit 667938
webservers. Contributions welcome.
Packit 667938
Packit 667938
=head1 APACHE
Packit 667938
Packit 667938
=head2 Configuring mod_expire
Packit 667938
Packit 667938
A big issue with mrtg monitoring data is the expiry time.
Packit 667938
All these nice graphs you can create are only valid for a short time.
Packit 667938
If you do not take special action some webbrowsers will not notice this
Packit 667938
and you may end up with people seeing old data because of caching issues.
Packit 667938
Packit 667938
The apache module mod_expire allows you to setup special
Packit 667938
expiry properties for individual file.
Packit 667938
Packit 667938
Here is an example for how this may look for an mrtg web directory.
Packit 667938
The configuration directives can be stored into a F<.htaccess> file.
Packit 667938
Packit 667938
 ############################################################
Packit 667938
 # Example .htaccess for use with apache-1.2 and mod_expire.
Packit 667938
 # (mod_expire come with apache-1.2 but you have to explicitly
Packit 667938
 # activate it when compiling the httpd ...)
Packit 667938
 #############################################################
Packit 667938
 #
Packit 667938
 <Files "*-day.png">
Packit 667938
 ExpiresActive On                  # enable expirations
Packit 667938
 # five minutes
Packit 667938
 ExpiresDefault M300
Packit 667938
 </Files>
Packit 667938
Packit 667938
 <Files "*-week.png">
Packit 667938
 ExpiresActive On
Packit 667938
 ExpiresDefault M1800
Packit 667938
 </Files>
Packit 667938
Packit 667938
 <Files "*-month.png">
Packit 667938
 ExpiresActive On
Packit 667938
 ExpiresDefault M7200
Packit 667938
 </Files>
Packit 667938
Packit 667938
 <Files "*-year.png">
Packit 667938
 ExpiresActive On
Packit 667938
 ExpiresDefault M86400
Packit 667938
 </Files>
Packit 667938
Packit 667938
 <Files "*.html">
Packit 667938
 ExpiresActive On
Packit 667938
 ExpiresDefault M300
Packit 667938
 </Files>
Packit 667938
Packit 667938
 # index.html is not automatically generated
Packit 667938
 <Files "index.html">
Packit 667938
 ExpiresActive Off
Packit 667938
 </Files>
Packit 667938
Packit 667938
=head1 AUTHOR
Packit 667938
Packit 667938
Unknown