##// END OF EJS Templates
docs: move Apache+mod_wsgi example code to the corresponding bullets...
Thomas De Schampheleire -
r7557:ee37a78c stable
parent child Browse files
Show More
@@ -499,38 +499,9 b" that, you'll need to:"
499 499
500 500 WSGIRestrictEmbedded On
501 501
502 - Create a wsgi dispatch script, like the one below. Make sure you
502 - Create a WSGI dispatch script, like the one below. Make sure you
503 503 check that the paths correctly point to where you installed Kallithea
504 504 and its Python Virtual Environment.
505 - Enable the ``WSGIScriptAlias`` directive for the WSGI dispatch script,
506 as in the following example. Once again, check the paths are
507 correctly specified.
508
509 Here is a sample excerpt from an Apache Virtual Host configuration file:
510
511 .. code-block:: apache
512
513 WSGIDaemonProcess kallithea processes=5 threads=1 maximum-requests=100 \
514 python-home=/srv/kallithea/venv
515 WSGIProcessGroup kallithea
516 WSGIScriptAlias / /srv/kallithea/dispatch.wsgi
517 WSGIPassAuthorization On
518
519 Or if using a dispatcher WSGI script with proper virtualenv activation:
520
521 .. code-block:: apache
522
523 WSGIDaemonProcess kallithea processes=5 threads=1 maximum-requests=100
524 WSGIProcessGroup kallithea
525 WSGIScriptAlias / /srv/kallithea/dispatch.wsgi
526 WSGIPassAuthorization On
527
528 Apache will by default run as a special Apache user, on Linux systems
529 usually ``www-data`` or ``apache``. If you need to have the repositories
530 directory owned by a different user, use the user and group options to
531 WSGIDaemonProcess to set the name of the user and group.
532
533 Example WSGI dispatch script:
534 505
535 506 .. code-block:: python
536 507
@@ -565,6 +536,32 b' Or using proper virtualenv activation:'
565 536 from paste.deploy import loadapp
566 537 application = loadapp('config:' + ini)
567 538
539 - Enable the ``WSGIScriptAlias`` directive for the WSGI dispatch script, as in
540 the following example from an Apache Virtual Host configuration file. Once
541 again, check the paths are correctly specified.
542
543 .. code-block:: apache
544
545 WSGIDaemonProcess kallithea processes=5 threads=1 maximum-requests=100 \
546 python-home=/srv/kallithea/venv
547 WSGIProcessGroup kallithea
548 WSGIScriptAlias / /srv/kallithea/dispatch.wsgi
549 WSGIPassAuthorization On
550
551 Or if using a dispatcher WSGI script with proper virtualenv activation:
552
553 .. code-block:: apache
554
555 WSGIDaemonProcess kallithea processes=5 threads=1 maximum-requests=100
556 WSGIProcessGroup kallithea
557 WSGIScriptAlias / /srv/kallithea/dispatch.wsgi
558 WSGIPassAuthorization On
559
560 Apache will by default run as a special Apache user, on Linux systems
561 usually ``www-data`` or ``apache``. If you need to have the repositories
562 directory owned by a different user, use the user and group options to
563 WSGIDaemonProcess to set the name of the user and group.
564
568 565
569 566 Other configuration files
570 567 -------------------------
General Comments 0
You need to be logged in to leave comments. Login now