aboutsummaryrefslogtreecommitdiffstats
path: root/web/etc/apache2/munin.tg15.gathering.org
blob: aaa384824cf89886429b3b2e947c551149bb56d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<VirtualHost *:8080>
        ServerAdmin drift@gathering.org
        ServerName munin.tg15.gathering.org

	# Enable this for template generation
	Alias /munin /var/cache/munin/www

	# Enable this for cgi-based templates
	#Alias /munin-cgi/static /var/cache/munin/www/static
	#ScriptAlias /munin-cgi /usr/lib/munin/cgi/munin-cgi-html
	#<Location /munin-cgi>
	#	Order allow,deny
	#	Allow from localhost 127.0.0.0/8 ::1
	#	AuthUserFile /etc/munin/munin-htpasswd
	#	AuthName "Munin"
	#	AuthType Basic
	#	require valid-user
	#</Location>

	DocumentRoot /var/cache/munin/www
	<Directory /var/cache/munin/www>
		AllowOverride None
	        Order allow,deny
	        Allow from all
	        Options Indexes
		#Require all granted
	
		# This file can be used as a .htaccess file, or a part of your apache
		# config file.
		#
		# For the .htaccess file option to work the munin www directory
		# (/var/cache/munin/www) must have "AllowOverride all" or something 
		# close to that set.
		#
	
		# AuthUserFile /etc/munin/munin-htpasswd
		# AuthName "Munin"
		# AuthType Basic
		# require valid-user
	
		# This next part requires mod_expires to be enabled.
		#
		
		# Set the default expiration time for files to 5 minutes 10 seconds from
		# their creation (modification) time.  There are probably new files by
		# that time. 
		#

		SetEnvIF ^X-Forwarded-For$ "^185\.12\.59\.12$" AllowIP
                SetEnvIF ^X-Forwarded-For$ "^2a02:ed02:1337::12$" AllowIP

                <RequireAny>
                        AuthUserFile /root/tgmanage/web/.htpasswd
                        AuthName "Tech:Server Secret Volcano Lair"
                        AuthType Basic
                        Require valid-user

                        Require env AllowIP
                </RequireAny>

	    <IfModule mod_expires.c>
	        ExpiresActive On
	    	ExpiresDefault M310
	    </IfModule>
	
	</Directory> 
	
	# Enables fastcgi for munin-cgi-html if present
	#<Location /munin-cgi>
	#    <IfModule mod_fastcgi.c>
	#        SetHandler fastcgi-script
	#    </IfModule>
	#</Location>
	
	#<Location /munin-cgi/static>
	#	SetHandler None
	#</Location>
	
	# Enables fastcgi for munin-cgi-graph if present
	ScriptAlias /munin-cgi/munin-cgi-graph /usr/lib/munin/cgi/munin-cgi-graph
	<Location /munin-cgi/munin-cgi-graph>
		Order allow,deny
		Allow from localhost 127.0.0.0/8 ::1
		# AuthUserFile /etc/munin/munin-htpasswd
		# AuthName "Munin"
		# AuthType Basic
		# require valid-user
		<IfModule mod_fcgid.c>
		    SetHandler fcgid-script
		</IfModule>
		<IfModule !mod_fcgid.c>
		    SetHandler cgi-script
		</IfModule>
	</Location>

	ScriptAlias /munin-cgi/munin-cgi-html /usr/lib/munin/cgi/munin-cgi-html
	<Location /munin-cgi/munin-cgi-html>
		Order allow,deny
		Allow from localhost 127.0.0.0/8 ::1
		# AuthUserFile /etc/munin/munin-htpasswd
		# AuthName "Munin"
		# AuthType Basic
		# require valid-user
		<IfModule mod_fcgid.c>
		    SetHandler fcgid-script
		</IfModule>
		<IfModule !mod_fcgid.c>
		    SetHandler cgi-script
		</IfModule>
	</Location>

        ErrorLog /var/log/apache2/error-munin.tg15.gathering.org.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel debug

        CustomLog /var/log/apache2/access-munin.tg15.gathering.org.log combined
        ServerSignature On
</VirtualHost>