~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to docs/index.rst

  • Committer: Toshio Kuratomi
  • Date: 2010-04-18 17:55:33 UTC
  • mto: (464.1.1 mod-wsgi)
  • mto: This revision was merged to the branch mainline in revision 465.
  • Revision ID: toshio@fedoraproject.org-20100418175533-bmrymlv9ir7v7jwg
Merge README.mod_wsgi into the installation instructions in docs/index.rst and add mod_wsgi note to NEWS

Show diffs side-by-side

added added

removed removed

Lines of Context:
152
152
Serving Loggerhead with mod_wsgi
153
153
--------------------------------
154
154
 
155
 
A second method for using Loggerhead with apache is to have apache itself
156
 
execute Loggerhead via mod_wsgi.  You need to add configuration for apache and
157
 
for bazaar to make this work.  Example config files are in the Loggerhead doc
 
155
A second method for using loggehead with apache is to have apache itself
 
156
execute loggerhead via mod_wsgi.  You need to add configuration for apache and
 
157
for bazaar to make this work.  Example config files are in the loggerhead doc
158
158
directory as apache-loggerhead.conf and bazaar.conf.  You can copy them into
159
159
place and use them as a starting point following these directions:
160
160
 
166
166
 
167
167
    su -c yum install mod_wsgi
168
168
 
169
 
2) Copy the bazaar.conf file where apache will find it (May be done for you if
170
 
   you installed Loggerhead from a distribution package)::
 
169
2) Copy the bazaar conf file where apache will find it (May be done for you if
 
170
   you installed loggerhead from a distribution package)::
171
171
 
172
172
    # install -d -o apache -g apache -m 0755 /etc/loggerhead
173
173
    # cp -p /usr/share/doc/loggerhead*/bazaar.conf /etc/loggerhead/
174
174
    # ln -s /etc/loggerhead /var/www/.bazaar
175
175
 
176
 
3) Create the cache directory (May be done for you if you installed Loggerhead
 
176
3) Create the cache directory (May be done for you if you installed loggerhead
177
177
   from a distribution package)::
178
178
 
179
179
    # install -d -o apache -g apache -m 0700 /var/cache/loggerhead/
180
180
 
181
181
4) Edit /etc/loggerhead/bazaar.conf.  You need to set http_root_dir to the filesystem
182
182
   path that you will find your bzr branches under.  Note that normal
183
 
   directories under that path will also be visible in Loggerhead.
 
183
   directories under that path will also be visible in loggerhead.
184
184
 
185
185
5) Install the apache conf file::
186
186
 
187
187
     # cp -p /usr/share/doc/loggerhead*/apache-loggerhead.conf /etc/httpd/conf.d/loggerhead.conf
188
188
 
189
189
6) Edit /etc/httpd/conf.d/loggerhead.conf to point to the url you desire to
190
 
   serve Loggerhead on.  This should match with the setting for
 
190
   serve loggerhead on.  This should match with the setting for
191
191
   http_user_prefix in bazaar.conf
192
192
 
193
193
7) Restart apache and you should be able to start browsing
221
221
   :maxdepth: 2
222
222
 
223
223
   serve-branches
 
224
   start-loggerhead
 
225
   stop-loggerhead
224
226
 
225
227
 
226
228
Support