/
sympa-robot.conf
63 lines (52 loc) · 1.79 KB
/
sympa-robot.conf
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
<VirtualHost *:80>
ServerName %%fqdn%%
DocumentRoot "/var/www/sympa/"
AssignUserId www-data www-data
SetEnv LOGIN "0000-sympa"
# Force HTTPS
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !/.well-known/acme-challenge/
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
# Redirect / to /wws to show wwsympa on frontpage.
RedirectMatch ^/$ /wws
# nothing is served on this folder, but it seems that apache need it to exist anyway...
<Directory /var/www/sympa/>
allow from all
order allow,deny
</Directory>
<Location /wws>
SetHandler "proxy:unix:/run/sympa/wwsympa.socket|fcgi://"
Require all granted
Order allow,deny
Allow from all
</Location>
<Location /sympasoap>
SetHandler "proxy:unix:/run/sympa/sympasoap.socket|fcgi://"
Require all granted
Order allow,deny
Allow from all
</Location>
Alias /static-sympa /usr/share/sympa/static_content
<Directory /usr/share/sympa/static_content>
Require all granted
Allow from all
order allow,deny
</directory>
Alias /css-sympa /var/lib/sympa/css
<Directory /var/lib/sympa/css>
Require all granted
Allow from all
order allow,deny
</Directory>
Alias /pictures-sympa /var/lib/sympa/pictures
<Directory /var/lib/sympa/pictures>
Require all granted
Allow from all
order allow,deny
</Directory>
# If you want to log the errors also in /var/log/alternc/sites/
# WARNING: this WILL FORK a vlogger for EACH VHOST havingg this !!! the load on the machine may be high
# on hosting with many vhosts. as a consequence, this is disabled by default
# ErrorLog "|| /usr/sbin/vlogger -e -u alterncpanel -g alterncpanel -s error.log -t \"error-%Y%m%d.log\" /var/log/alternc/sites/%%UID%%-%%LOGIN%%/"
</VirtualHost>