Benchmarks tell us throughput increases linearly with processes count. Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
26 lines
816 B
Text
26 lines
816 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=8 threads=1 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>
|