27 lines
1.0 KiB
Plaintext
27 lines
1.0 KiB
Plaintext
|
Define IP_ADDR 0.0.0.0
|
||
|
Define TCP_PORT 80
|
||
|
Define SRV_NAME participer.redatomik.org
|
||
|
Define ROOT_DIR /var/www/participer.redatomik.org
|
||
|
Define WSGI_ALIAS /var/www/participer.redatomik.org/participer.redatomik.org.wsgi
|
||
|
Define DAEMON_PROCESS participer.redatomik.org
|
||
|
Define APACHE_USER apache
|
||
|
Define APACHE_GROUP apache
|
||
|
Define THREAD_NUMBER 5
|
||
|
<VirtualHost ${IP_ADDR}:${TCP_PORT}>
|
||
|
ServerName ${SRV_NAME}
|
||
|
ServerAdmin bofh@tetalab.org
|
||
|
DocumentRoot ${ROOT_DIR}
|
||
|
WSGIDaemonProcess ${DAEMON_PROCESS} user=${APACHE_USER} group=${APACHE_GROUP} threads=${THREAD_NUMBER}
|
||
|
WSGIScriptAlias / ${WSGI_ALIAS}
|
||
|
<Directory ${ROOT_DIR}>
|
||
|
WSGIProcessGroup ${DAEMON_PROCESS}
|
||
|
WSGIApplicationGroup %{GLOBAL}
|
||
|
Order deny,allow
|
||
|
Allow from all
|
||
|
AllowOverride All
|
||
|
Require all granted
|
||
|
</Directory>
|
||
|
ErrorLog /var/log/httpd/${SRV_NAME}.error.log
|
||
|
CustomLog /var/log/httpd/${SRV_NAME}.access.log combined
|
||
|
</VirtualHost>
|