blob: 10817cff25ed5d90e757760f452a31a169dac090 (
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
|
<VirtualHost *:80>
ServerAdmin lol@example.com
ServerName nms.example.com
ServerAlias nms.example.com
DocumentRoot /opt/gondul/web
ScriptAlias /api/write/ /opt/gondul/web/api/write/
ScriptAlias /api/read/ /opt/gondul/web/api/read/
ScriptAlias /api/public/ /opt/gondul/web/api/public/
<Directory "/opt/gondul/web/api/write/">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
<RequireAny>
AuthUserFile /htpasswd-write
AuthName "Demo/test of nms"
AuthType Basic
Require valid-user
</RequireAny>
</Directory>
<Directory "/opt/gondul/web/api/read/">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
<RequireAny>
AuthUserFile /htpasswd-read
AuthName "Demo/test of nms"
AuthType Basic
Require valid-user
</RequireAny>
</Directory>
<Directory "/opt/gondul/web/api/public/">
AllowOverride None
Options +ExecCGI -MultiViews +Indexes +SymLinksIfOwnerMatch
Require all granted
</Directory>
<Directory "/opt/gondul/web">
AllowOverride None
Options Indexes FollowSymLinks MultiViews
AddDefaultCharset UTF-8
Require all granted
</Directory>
ErrorLog /var/log/apache2/error-nms.example.com.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access-nms.example.com.log combined
ServerSignature On
</VirtualHost>
|