Last active
August 23, 2017 14:37
-
-
Save return42/47ac8aabd19eaad0f10979761d0611a1 to your computer and use it in GitHub Desktop.
Apache Site Configuration for Radicale
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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