Blame doc/mrtg-webserver.txt

Packit 667938
MRTG-WEBSERVER(1)                    mrtg                    MRTG-WEBSERVER(1)
Packit 667938
Packit 667938
Packit 667938
Packit 667938
N?NA?AM?ME?E
Packit 667938
       mrtg-webserver - hints for web server configuration
Packit 667938
Packit 667938
S?SY?YN?NO?OP?PS?SI?IS?S
Packit 667938
       If you want people to actually see the results of your network
Packit 667938
       monitoring efforts you will need a webserver.
Packit 667938
Packit 667938
       This document lists some configuration hints for webservers.
Packit 667938
       Contributions welcome.
Packit 667938
Packit 667938
A?AP?PA?AC?CH?HE?E
Packit 667938
   C?Co?on?nf?fi?ig?gu?ur?ri?in?ng?g m?mo?od?d_?_e?ex?xp?pi?ir?re?e
Packit 667938
       A big issue with mrtg monitoring data is the expiry time.  All these
Packit 667938
       nice graphs you can create are only valid for a short time.  If you do
Packit 667938
       not take special action some webbrowsers will not notice this and you
Packit 667938
       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 expiry
Packit 667938
       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 _?._?h_?t_?a_?c_?c_?e_?s_?s 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
A?AU?UT?TH?HO?OR?R
Packit 667938
       Unknown
Packit 667938
Packit 667938
Packit 667938
Packit 667938
2.17.7                            2018-07-13                 MRTG-WEBSERVER(1)