forked from localwiki/localwiki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
apache.conf.template
40 lines (31 loc) · 1.3 KB
/
apache.conf.template
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
# LocalWiki Apache config file
# After modifying and saving, you may need to run these commands:
# $ sudo a2ensite example.com
# $ sudo /etc/init.d/apache2 reload
<VirtualHost *:80>
ServerName www.example.com
ServerAlias example.com
ServerAdmin [email protected]
# The media directory, which contains user-uploaded content, should be set
# to force downloads. This is *extremely* important for security reasons.
# Note: The /media/ directory must be writable by the www-data user
Alias /media/ /usr/share/localwiki/media/
<Location /media/>
Header set Content-Disposition attachment
</Location>
Alias /static/ /usr/share/localwiki/static/
Alias /robots.txt /usr/share/localwiki/static/robots.txt
Alias /favicon.ico /usr/share/localwiki/static/favicon.ico
<Directory /usr/share/localwiki/>
Options -Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
WSGIDaemonProcess example.com processes=2 threads=15 display-name=%{GROUP}
WSGIProcessGroup example.com
# For API Authorization header support
WSGIPassAuthorization On
WSGIScriptAlias / /usr/share/localwiki/deploy/localwiki.wsgi
CustomLog /var/log/apache2/access.log combined
</VirtualHost>