aboutsummaryrefslogtreecommitdiffstats
path: root/web/etc/apache2/nms.tg15.gathering.org
blob: a671c0a2df17c1cc2b7eeb51a47e2e66d08cda0b (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
<VirtualHost *:8080>
        ServerAdmin drift@gathering.org
        ServerName nms.tg15.gathering.org
        ServerAlias einstein.tg15.gathering.org

        DocumentRoot /root/tgmanage/web/nms.gathering.org
        <Directory "/root/tgmanage/web/nms.gathering.org">
                AllowOverride None
                Options Indexes FollowSymLinks ExecCGI MultiViews

                AddHandler cgi-script .cgi .sh .pl .py
                AddDefaultCharset UTF-8

		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>

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

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

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

        CustomLog /var/log/apache2/access-nms.tg15.gathering.org.log combined
        ServerSignature On

</VirtualHost>