~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to doc/http_smart_server.txt

  • Committer: Martin Albisetti
  • Date: 2007-08-15 21:14:26 UTC
  • mto: This revision was merged to the branch mainline in revision 2745.
  • Revision ID: martin@pentacorp.net-20070815211426-thbyeb5ecbxhocsd
updated smart server documentation

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
 
51
51
    Alias /code /srv/example.com/www/code
52
52
    <Directory /srv/example.com/www/code>
53
 
        Options Indexes, FollowSymLinks
 
53
        Options Indexes FollowSymLinks
54
54
        RewriteEngine On
55
55
        RewriteBase /code
56
56
        RewriteRule ^(.*/|)\.bzr/smart$ /srv/example.com/scripts/bzr-smart.fcgi
106
106
This instructs Apache to hand requests for any URL ending with `/.bzr/smart`
107
107
inside `/code` to a Bazaar smart server via mod_python.
108
108
 
 
109
NOTE: If you don't have bzrlib in your PATH, you will be need to change the following line:
 
110
 
 
111
            PythonPath "sys.path+['/srv/example.com/scripts']"
 
112
 
 
113
To:
 
114
 
 
115
            PythonPath "['/path/to/bzr']+sys.path+['/srv/example.com/scripts']"
 
116
 
 
117
 
109
118
Refer to the mod_python_ documentation for further information.
110
119
 
111
120
.. _mod_python: http://www.modpython.org/
161
170
        return wsgi_server.run(request)
162
171
        
163
172
The `modpywsgi` module can be found at http://trac.pocoo.org/wiki/ModPyWsgi.  It
164
 
is part of pocoo_.
 
173
is part of pocoo_. 
 
174
You sould make sure you place modpywsgi.py in the same directory as 
 
175
bzr-smart.py (ie. /srv/example.com/scripts/).
165
176
 
166
177
.. _pocoo: http://trac.pocoo.org/wiki/
167
178