Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Apache Site Configuration for Radicale
<IfModule mod_wsgi.c>
# don't forget to install radicale into virtualenv
# -
# -
WSGIPythonHome /var/www/pyApps/pyenv
# setup the process group 'pyApps'
WSGIDaemonProcess pyApps \
user=www-data group=nogroup \
processes=2 threads=5 maximum-requests=5
<Directory /var/www/pyApps>
Require all granted
Order deny,allow
Deny from all
# fix 'Allow' to you needs ..
Allow from fd00::/8 fe80::/10 ::1
AllowOverride None
# make use process group 'pyApps'
WSGIProcessGroup pyApps
# WSGIApplicationGroup : To force a specific WSGI application to
# be run within the very first Python sub interpreter created
# when Python is initialised, the WSGIApplicationGroup directive
# should be used and the group set to '%{GLOBAL}'. See:
WSGIApplicationGroup %{GLOBAL}
# don't forget to install radicale.wsgi
# hint: apache's SetEnv will not work! Set config in radicale.wsgi::
# config_paths = ["/etc/radicale/config",]
WSGIScriptAlias /radicale /var/www/pyApps/radicale.wsgi
<Location /radicale>
<IfModule mod_security2.c>
SecRuleEngine Off
# If you do not use external authentication (e.g. pwauth)
# comment-out this section ..
Require valid-user
AuthType Basic
AuthBasicProvider external
AuthName "radicale"
AuthExternal pwauth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment