forked from shaba/openuds
68 lines
1.5 KiB
Plaintext
68 lines
1.5 KiB
Plaintext
|
|
||
|
#Listen 443
|
||
|
|
||
|
<VirtualHost *:80>
|
||
|
|
||
|
DocumentRoot /usr/share/openuds
|
||
|
|
||
|
LogLevel warn
|
||
|
ErrorLog /var/log/openuds/error.log
|
||
|
# CustomLog /var/log/openuds/access.log combined
|
||
|
|
||
|
WSGIScriptReloading On
|
||
|
WSGIDaemonProcess openuds processes=2 threads=10 user=openuds group=openuds display-name=%{GROUP}
|
||
|
WSGIProcessGroup openuds
|
||
|
WSGIApplicationGroup openuds
|
||
|
WSGIPassAuthorization On
|
||
|
WSGIScriptAlias / /usr/share/openuds/server/wsgi.py
|
||
|
|
||
|
|
||
|
<Directory /usr/share/openuds/uds>
|
||
|
Require all granted
|
||
|
</Directory>
|
||
|
|
||
|
<Directory /usr/share/openuds/server>
|
||
|
<Files wsgi.py>
|
||
|
Require all granted
|
||
|
</Files>
|
||
|
</Directory>
|
||
|
|
||
|
</VirtualHost>
|
||
|
|
||
|
</IfModule>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
ServerAdmin {{ ADMIN }}
|
||
|
ServerName {{ VHOSTNAME }}
|
||
|
|
||
|
DocumentRoot {{ PROJECT_ROOT }}/
|
||
|
|
||
|
LogLevel warn
|
||
|
ErrorLog {{ LOGDIR }}/{{ PROJECT_NAME }}-error.log
|
||
|
CustomLog {{ LOGDIR }}/{{ PROJECT_NAME }}-access.log combined
|
||
|
|
||
|
WSGIScriptReloading On
|
||
|
WSGIDaemonProcess {{ PROJECT_NAME }}_website processes={{ PROCESSES }}
|
||
|
WSGIProcessGroup {{ PROJECT_NAME }}_website
|
||
|
WSGIApplicationGroup {{ PROJECT_NAME }}_website
|
||
|
WSGIPassAuthorization On
|
||
|
|
||
|
WSGIScriptAlias / {{ WSGI_FILE }}
|
||
|
{% if APACHE2_VERSION >= 2.4 %}
|
||
|
<Location "/">
|
||
|
Require all granted
|
||
|
</Location>
|
||
|
{% else %}
|
||
|
<Location "/">
|
||
|
Order Allow,Deny
|
||
|
Allow from all
|
||
|
</Location>
|
||
|
{% endif %}
|
||
|
Alias /static {{ STATIC_PATH }}
|
||
|
<Location "/static">
|
||
|
SetHandler None
|
||
|
</Location>
|
||
|
</Virtualhost>
|