~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to doc/en/user-guide/http_smart_server.txt

Merge bzr.dev

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
 
110
following line::
 
111
 
 
112
            PythonPath "sys.path+['/srv/example.com/scripts']"
 
113
 
 
114
To::
 
115
 
 
116
            PythonPath "['/path/to/bzr']+sys.path+['/srv/example.com/scripts']"
 
117
 
 
118
 
109
119
Refer to the mod_python_ documentation for further information.
110
120
 
111
121
.. _mod_python: http://www.modpython.org/
162
172
        
163
173
The `modpywsgi` module can be found at http://trac.pocoo.org/wiki/ModPyWsgi.  It
164
174
is part of pocoo_.
 
175
You sould make sure you place modpywsgi.py in the same directory as
 
176
bzr-smart.py (ie. /srv/example.com/scripts/).
165
177
 
166
178
.. _pocoo: http://trac.pocoo.org/wiki/
167
179