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
10       monitoring efforts you will need a webserver.
11
12       This document lists some configuration hints for webservers.
13       Contributions welcome.
14

APACHE

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

AUTHOR

66       Unknown
67
68
69
702.17.7                            2018-07-13                 MRTG-WEBSERVER(1)
Impressum