Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Apache Site Configuration for Radicale
<IfModule mod_wsgi.c>
# don't forget to install radicale into virtualenv
# - http://modwsgi.readthedocs.io/en/develop/user-guides/virtual-environments.html
# - http://radicale.org/tutorial/
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 192.168.0.0/16 fe80::/10 127.0.0.0/8 ::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:
# http://modwsgi.readthedocs.io/en/develop/user-guides/application-issues.html?highlight=global#python-simplified-gil-state-api
WSGIApplicationGroup %{GLOBAL}
</Directory>
# don't forget to install radicale.wsgi http://radicale.org/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
</IfModule>
# 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
</Location>
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment