-
Notifications
You must be signed in to change notification settings - Fork 167
Expand file tree
/
Copy path000-default.conf
More file actions
34 lines (31 loc) · 1.05 KB
/
000-default.conf
File metadata and controls
34 lines (31 loc) · 1.05 KB
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
<Directory /usr/local/elixir/>
AllowOverride None
Require all denied
<FilesMatch "wsgi.py">
Require all granted
</FilesMatch>
</Directory>
<Directory /usr/local/elixir/static/>
AllowOverride None
Require all granted
<Files search.xml>
ForceType "application/opensearchdescription+xml; charset=utf-8"
</Files>
</Directory>
<VirtualHost *:80>
ServerName MY_LOCAL_IP
DocumentRoot /usr/local/elixir/
SetEnv LXR_PROJ_DIR /srv/elixir-data/
# restart-interval is 12 hours
WSGIDaemonProcess Elixir processes=16 threads=1 \
display-name=%{GROUP} restart-interval=43200 \
home=/usr/local/elixir/ python-home=/usr/local/elixir/venv/
WSGIApplicationGroup %{GLOBAL}
WSGIProcessGroup Elixir
WSGIScriptAliasMatch "^/(?!static/)" /usr/local/elixir/wsgi.py/$1
AllowEncodedSlashes On
RewriteEngine on
RewriteRule "^/$" "/linux/latest/source" [R]
RewriteRule "^/robots.txt$" "/static/robots.txt" [L]
RewriteRule "^/favicon.ico$" "/static/img/favicon.ico" [L]
</VirtualHost>