# This is an example of an apache config file for creating a virtual # host for your apache branches. ServerAdmin yourname@domain.com ServerName bzr.domain.com # Doesn't really matter where this points to, unless you # would also like to serve static files as well DocumentRoot /srv/bzr # You can use a line like this to tell bazaar-webserve whar # config file to use to determine the branches to serve SetEnv BAZAAR_WEBSERVE_CONFIG /srv/bzr/branches.conf # Add a line like this for each branch to serve to allow branching Alias /project1/.bzr /srv/bzr/project1/.bzr # Set up bazaar-webserve to look like the root of the domain ScriptAlias / /usr/share/bazaar-webserve/cgi-bin/ # Use a rewrite rule to make the script appear to run at http://host/bzr/ RewriteEngine On RewriteRule ^/bzr/(.*)$ /bazaar-webserve-dir.cgi/$1 [PT]