aboutsummaryrefslogtreecommitdiffstats
path: root/misc/apache2.conf
blob: 08471e07980b8182e439eb304ee8869be8dec1b4 (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
<VirtualHost *:8080>
        ServerAdmin drift@gathering.org
        ServerName nms.tg16.gathering.org
        ServerAlias nms.tg16.gathering.org

        DocumentRoot /srv/tgmanage/web/nms.gathering.org
	ScriptAlias /api/write/ /srv/tgmanage/web/nms.gathering.org/api/write/
	ScriptAlias /api/read/ /srv/tgmanage/web/nms.gathering.org/api/read/
	ScriptAlias /api/public/ /srv/tgmanage/web/nms.gathering.org/api/public/
	<Directory "/srv/tgmanage/web/nms.gathering.org/api/write/">
		AllowOverride None
		Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
		<RequireAny>
			AuthUserFile /srv/tgmanage/web/htpasswd-write
	                AuthName "Tech:Server Secret Volcano Lair"
        	        AuthType Basic
			Require valid-user
		</RequireAny>
	</Directory>
	<Directory "/srv/tgmanage/web/nms.gathering.org/api/read/">
		AllowOverride None
		Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
		<RequireAny>
			AuthUserFile /srv/tgmanage/web/htpasswd-read
	                AuthName "The Gathering Network Management System"
        	        AuthType Basic
			Require valid-user
		</RequireAny>
	</Directory>
	<Directory "/srv/tgmanage/web/nms.gathering.org/api/public/">
		AllowOverride None
		Options +ExecCGI -MultiViews +Indexes +SymLinksIfOwnerMatch
		Require all granted
	</Directory>
        <Directory "/srv/tgmanage/web/nms.gathering.org">
                AllowOverride None
                Options Indexes FollowSymLinks MultiViews
                AddDefaultCharset UTF-8
		<RequireAny>
			AuthUserFile /srv/tgmanage/web/htpasswd-read
	                AuthName "The Gathering Network Management System"
        	        AuthType Basic
			Require valid-user
		</RequireAny>
        </Directory>

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

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

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

</VirtualHost>