1MRTG-WEBSERVER(1)                    mrtg                    MRTG-WEBSERVER(1)
2
3
4

NAME

6       mrtg-webserver - hints for web server configuration
7

SYNOPSIS

9       If you want people to actually see the results of your network monitor‐
10       ing efforts you will need a webserver.
11
12       This document lists some configuration hints for webservers. Contribu‐
13       tions welcome.
14

APACHE

16       Configuring mod_expire
17
18       A big issue with mrtg monitoring data is the expiry time.  All these
19       nice graphs you can create are only valid for a short time.  If you do
20       not take special action some webbrowsers will not notice this and you
21       may end up with people seeing old data because of caching issues.
22
23       The apache module mod_expire allows you to setup special expiry proper‐
24       ties for individual file.
25
26       Here is an example for how this may look for an mrtg web directory.
27       The configuration directives can be stored into a .htaccess file.
28
29        ############################################################
30        # Example .htaccess for use with apache-1.2 and mod_expire.
31        # (mod_expire come with apache-1.2 but you have to explicitly
32        # activate it when compiling the httpd ...)
33        #############################################################
34        #
35        <Files "*-day.png">
36        ExpiresActive On                  # enable expirations
37        # five minutes
38        ExpiresDefault M300
39        </Files>
40
41        <Files "*-week.png">
42        ExpiresActive On
43        ExpiresDefault M1800
44        </Files>
45
46        <Files "*-month.png">
47        ExpiresActive On
48        ExpiresDefault M7200
49        </Files>
50
51        <Files "*-year.png">
52        ExpiresActive On
53        ExpiresDefault M86400
54        </Files>
55
56        <Files "*.html">
57        ExpiresActive On
58        ExpiresDefault M300
59        </Files>
60
61        # index.html is not automatically generated
62        <Files "index.html">
63        ExpiresActive Off
64        </Files>
65

AUTHOR

67       Unknown
68
69
70
712.16.2                            2008-05-16                 MRTG-WEBSERVER(1)
Impressum