Blob Blame History Raw
# Example configuration for Apache httpd with cron generated graphs.
#
# To use this example config simply copy this to /etc/httpd/conf.d/
# directory and restart httpd.
#
# Access Munin at http://localhost/munin/


<VirtualHost *:80>
    ServerName    localhost
    ServerAdmin   root@localhost
    ErrorLog      /var/log/httpd/munin.localhost-error.log
    CustomLog     /var/log/httpd/munin.localhost-access.log combined
    DocumentRoot  /var/www/html

    ScriptAlias   /munin-cgi/munin-cgi-graph /var/www/html/munin/cgi/munin-cgi-graph

    # FastCGI
    <Directory "/var/www/html/munin/cgi">
        Options +ExecCGI
        <IfModule mod_fcgid.c>
            SetHandler fcgid-script
        </IfModule>
        <IfModule !mod_fcgid.c>
            SetHandler cgi-script
        </IfModule>
    </Directory>
</VirtualHost>


# Uncomment following lines to require authentication:

# <Directory /var/www/html/munin>
#     AuthUserFile /etc/munin/munin-htpasswd
#     AuthName "Munin"
#     AuthType Basic
#     Require valid-user
# # This next part requires mod_expires to be enabled.
# #
# # We could use <IfModule mod_expires> around here, but I want it to be
# # as evident as possible that you either have to load mod_expires _or_
# # you coment out/remove these lines.
# #
# # Set the default expiery time for files 5 minutes 10 seconds from
# # their creation (modification) time.  There are probably new files by
# # that time.
#     ExpiresActive On
#     ExpiresDefault M310
# </Directory>