annotate wiki/server/moin.ajp @ 6092:d811122349fb

trivial changes to comments: replace "python2.3" with "python2.7", minor rewording of comments
author RogerHaase
date Mon, 05 Sep 2016 20:42:50 -0700
parents d1be5f6846ca
children
rev   line source
4279
d5aa1ac55789 Added AJP adapter
Florian Krupicka <florian.krupicka@googlemail.com>
parents:
diff changeset
1 #!/usr/bin/env python
d5aa1ac55789 Added AJP adapter
Florian Krupicka <florian.krupicka@googlemail.com>
parents:
diff changeset
2 # -*- coding: iso-8859-1 -*-
d5aa1ac55789 Added AJP adapter
Florian Krupicka <florian.krupicka@googlemail.com>
parents:
diff changeset
3 """
d5aa1ac55789 Added AJP adapter
Florian Krupicka <florian.krupicka@googlemail.com>
parents:
diff changeset
4 MoinMoin - AJP Driver script
d5aa1ac55789 Added AJP adapter
Florian Krupicka <florian.krupicka@googlemail.com>
parents:
diff changeset
5
d5aa1ac55789 Added AJP adapter
Florian Krupicka <florian.krupicka@googlemail.com>
parents:
diff changeset
6 @copyright: 2008 by MoinMoin:FlorianKrupicka
d5aa1ac55789 Added AJP adapter
Florian Krupicka <florian.krupicka@googlemail.com>
parents:
diff changeset
7 @license: GNU GPL, see COPYING for details.
d5aa1ac55789 Added AJP adapter
Florian Krupicka <florian.krupicka@googlemail.com>
parents:
diff changeset
8 """
d5aa1ac55789 Added AJP adapter
Florian Krupicka <florian.krupicka@googlemail.com>
parents:
diff changeset
9
d5aa1ac55789 Added AJP adapter
Florian Krupicka <florian.krupicka@googlemail.com>
parents:
diff changeset
10 import sys, os
d5aa1ac55789 Added AJP adapter
Florian Krupicka <florian.krupicka@googlemail.com>
parents:
diff changeset
11
d5aa1ac55789 Added AJP adapter
Florian Krupicka <florian.krupicka@googlemail.com>
parents:
diff changeset
12 # a) Configuration of Python's code search path
d5aa1ac55789 Added AJP adapter
Florian Krupicka <florian.krupicka@googlemail.com>
parents:
diff changeset
13 # If you already have set up the PYTHONPATH environment variable for the
d5aa1ac55789 Added AJP adapter
Florian Krupicka <florian.krupicka@googlemail.com>
parents:
diff changeset
14 # stuff you see below, you don't need to do a1) and a2).
d5aa1ac55789 Added AJP adapter
Florian Krupicka <florian.krupicka@googlemail.com>
parents:
diff changeset
15
d5aa1ac55789 Added AJP adapter
Florian Krupicka <florian.krupicka@googlemail.com>
parents:
diff changeset
16 # a1) Path of the directory where the MoinMoin code package is located.
d5aa1ac55789 Added AJP adapter
Florian Krupicka <florian.krupicka@googlemail.com>
parents:
diff changeset
17 # Needed if you installed with --prefix=PREFIX or you didn't use setup.py.
6092
d811122349fb trivial changes to comments: replace "python2.3" with "python2.7", minor rewording of comments
RogerHaase
parents: 4287
diff changeset
18 #sys.path.insert(0, 'PREFIX/lib/python2.7/site-packages')
4279
d5aa1ac55789 Added AJP adapter
Florian Krupicka <florian.krupicka@googlemail.com>
parents:
diff changeset
19
d5aa1ac55789 Added AJP adapter
Florian Krupicka <florian.krupicka@googlemail.com>
parents:
diff changeset
20 # a2) Path of the directory where wikiconfig.py / farmconfig.py is located.
d5aa1ac55789 Added AJP adapter
Florian Krupicka <florian.krupicka@googlemail.com>
parents:
diff changeset
21 # See wiki/config/... for some sample config files.
d5aa1ac55789 Added AJP adapter
Florian Krupicka <florian.krupicka@googlemail.com>
parents:
diff changeset
22 #sys.path.insert(0, '/path/to/wikiconfigdir')
d5aa1ac55789 Added AJP adapter
Florian Krupicka <florian.krupicka@googlemail.com>
parents:
diff changeset
23 #sys.path.insert(0, '/path/to/farmconfigdir')
d5aa1ac55789 Added AJP adapter
Florian Krupicka <florian.krupicka@googlemail.com>
parents:
diff changeset
24
d5aa1ac55789 Added AJP adapter
Florian Krupicka <florian.krupicka@googlemail.com>
parents:
diff changeset
25 # b) Configuration of moin's logging
d5aa1ac55789 Added AJP adapter
Florian Krupicka <florian.krupicka@googlemail.com>
parents:
diff changeset
26 # If you have set up MOINLOGGINGCONF environment variable, you don't need this!
d5aa1ac55789 Added AJP adapter
Florian Krupicka <florian.krupicka@googlemail.com>
parents:
diff changeset
27 # You also don't need this if you are happy with the builtin defaults.
d5aa1ac55789 Added AJP adapter
Florian Krupicka <florian.krupicka@googlemail.com>
parents:
diff changeset
28 # See wiki/config/logging/... for some sample config files.
d5aa1ac55789 Added AJP adapter
Florian Krupicka <florian.krupicka@googlemail.com>
parents:
diff changeset
29 #from MoinMoin import log
d5aa1ac55789 Added AJP adapter
Florian Krupicka <florian.krupicka@googlemail.com>
parents:
diff changeset
30 #log.load_config('/path/to/logging_configuration_file')
d5aa1ac55789 Added AJP adapter
Florian Krupicka <florian.krupicka@googlemail.com>
parents:
diff changeset
31
d5aa1ac55789 Added AJP adapter
Florian Krupicka <florian.krupicka@googlemail.com>
parents:
diff changeset
32
4287
d1be5f6846ca Aggregated flup-based servers into single file and added server-type config (threaded/forked/single)
Florian Krupicka <florian.krupicka@googlemail.com>
parents: 4279
diff changeset
33 from MoinMoin.web.flup_frontend import AJPFrontEnd
d1be5f6846ca Aggregated flup-based servers into single file and added server-type config (threaded/forked/single)
Florian Krupicka <florian.krupicka@googlemail.com>
parents: 4279
diff changeset
34 AJPFrontEnd().run()
d1be5f6846ca Aggregated flup-based servers into single file and added server-type config (threaded/forked/single)
Florian Krupicka <florian.krupicka@googlemail.com>
parents: 4279
diff changeset
35