* Build bsddb in a separate stage to avoid using system packages in venv * Update Docker Apache config to support WSGI
26 lines
806 B
Text
26 lines
806 B
Text
<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
|
|
</Directory>
|
|
<VirtualHost *:80>
|
|
ServerName MY_LOCAL_IP
|
|
DocumentRoot /usr/local/elixir/
|
|
|
|
SetEnv LXR_PROJ_DIR /srv/elixir-data/
|
|
# NOTE: it's recommended to set processes value to the number of available cores
|
|
WSGIDaemonProcess Elixir processes=4 display-name=%{GROUP} home=/usr/local/elixir/ python-home=/usr/local/elixir/venv/
|
|
|
|
WSGIProcessGroup Elixir
|
|
WSGIScriptAliasMatch "^/(?!static/)" /usr/local/elixir/wsgi.py/$1
|
|
|
|
AllowEncodedSlashes On
|
|
RewriteEngine on
|
|
RewriteRule "^/$" "/linux/latest/source" [R]
|
|
</VirtualHost>
|