152
152
Serving Loggerhead with mod_wsgi
153
153
--------------------------------
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:
167
167
su -c yum install mod_wsgi
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)::
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
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)::
179
179
# install -d -o apache -g apache -m 0700 /var/cache/loggerhead/
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.
185
185
5) Install the apache conf file::
187
187
# cp -p /usr/share/doc/loggerhead*/apache-loggerhead.conf /etc/httpd/conf.d/loggerhead.conf
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
193
193
7) Restart apache and you should be able to start browsing