mirror of
https://github.com/Kozea/Radicale.git
synced 2025-07-05 17:08:29 +00:00
Apache2 mod_wsgi section added in the user documentation
This commit is contained in:
parent
8dfe2ca0f2
commit
1733c696e5
1 changed files with 40 additions and 0 deletions
|
@ -340,6 +340,46 @@ options. These options are available by typing::
|
||||||
radicale --help
|
radicale --help
|
||||||
|
|
||||||
|
|
||||||
|
Use Radicale with Apache2 and mod_wsgi
|
||||||
|
--------------------------------------
|
||||||
|
|
||||||
|
For using Radicale with Apache's ``mod_wsgi``, you first have to write
|
||||||
|
your ``.wsgi`` file (in ``/var/www`` for example):
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
|
import radicale
|
||||||
|
application = radicale.Application()
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
We assume that Radicale is installed in your Python path.
|
||||||
|
|
||||||
|
Next you have to create the apache virtual host (adapt the configuration
|
||||||
|
to your environment):
|
||||||
|
|
||||||
|
.. code-block:: apache
|
||||||
|
|
||||||
|
<VirtualHost *:80>
|
||||||
|
ServerName cal.yourdomaine.org
|
||||||
|
|
||||||
|
WSGIDaemonProcess radicale user=www-data group=www-data threads=1
|
||||||
|
WSGIScriptAlias / /var/www/radicale.wsgi
|
||||||
|
|
||||||
|
<Directory /var/www>
|
||||||
|
WSGIProcessGroup radicale
|
||||||
|
WSGIApplicationGroup %{GLOBAL}
|
||||||
|
AllowOverride None
|
||||||
|
Order allow,deny
|
||||||
|
allow from all
|
||||||
|
</Directory>
|
||||||
|
</VirtualHost>
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
You should use the root of the (sub)domain (``WSGIScriptAlias /``), else
|
||||||
|
some CalDAV features will not work.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Authentication and URLs
|
Authentication and URLs
|
||||||
-----------------------
|
-----------------------
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue