37236c4
# Example configuration for Apache httpd with cron generated graphs.
37236c4
#
37236c4
# To use this example config simply copy this to /etc/httpd/conf.d/
37236c4
# directory and restart httpd.
37236c4
#
37236c4
# Access Munin at http://localhost/munin/
37236c4
37236c4
37236c4
<VirtualHost *:80>
37236c4
    ServerName    localhost
37236c4
    ServerAdmin   root@localhost
37236c4
    ErrorLog      /var/log/httpd/munin.localhost-error.log
37236c4
    CustomLog     /var/log/httpd/munin.localhost-access.log combined
37236c4
    DocumentRoot  /var/www/html
37236c4
37236c4
    ScriptAlias   /munin-cgi/munin-cgi-graph /var/www/html/munin/cgi/munin-cgi-graph
37236c4
37236c4
    # FastCGI
37236c4
    <Directory "/var/www/html/munin/cgi">
37236c4
        Options +ExecCGI
37236c4
        <IfModule mod_fcgid.c>
37236c4
            SetHandler fcgid-script
37236c4
        </IfModule>
37236c4
        <IfModule !mod_fcgid.c>
37236c4
            SetHandler cgi-script
37236c4
        </IfModule>
37236c4
    </Directory>
37236c4
</VirtualHost>
b44176d
b44176d
b44176d
# Uncomment following lines to require authentication:
b44176d
b44176d
# <Directory /var/www/html/munin>
b44176d
#     AuthUserFile /etc/munin/munin-htpasswd
b44176d
#     AuthName "Munin"
b44176d
#     AuthType Basic
b44176d
#     Require valid-user
b44176d
# # This next part requires mod_expires to be enabled.
b44176d
# #
b44176d
# # We could use <IfModule mod_expires> around here, but I want it to be
b44176d
# # as evident as possible that you either have to load mod_expires _or_
b44176d
# # you coment out/remove these lines.
b44176d
# #
b44176d
# # Set the default expiery time for files 5 minutes 10 seconds from
b44176d
# # their creation (modification) time.  There are probably new files by
b44176d
# # that time.
b44176d
#     ExpiresActive On
b44176d
#     ExpiresDefault M310
b44176d
# </Directory>