Has anyone had any success setting up CCRB behind a proxy, using apache? I''ve tried it 6 ways from tuesday, and it always seems to have some problems a) rewriting some of the urls for things like css files and b) with one or two of the redirects. thanks in advance! -- View this message in context: http://www.nabble.com/Setting-up-CCRB-behind-apache-proxy-tf4894065.html#a14016053 Sent from the CruiseControl.rb - Users mailing list archive at Nabble.com.
Alexander Kabanov
2007-Nov-30 23:01 UTC
[Cruisecontrolrb-users] Setting up CCRB behind apache proxy
the following apache configuration works for me (apache 2.2 on ubuntu feisty) (if this is what you are looking for) <VirtualHost *> ServerAdmin admin at example.com ServerName cc.exmaple.com <Location /> AuthType Basic AuthName "Cruisecontrol" AuthUserFile /path/to/htpasswd Require valid-user </Location> ProxyPass / http://1.1.1.1:3333/ ProxyPassReverse / http://1.1.1.1:3333/ ProxyPreserveHost on </VirtualHost> where 1.1.1.1 your host running CC, im my case is 127.0.0.1 but can be anything. best, --Alex On Fri, 2007-11-30 at 13:53 -0800, cchiodo wrote:> Has anyone had any success setting up CCRB behind a proxy, using apache? > I''ve tried it 6 ways from tuesday, and it always seems to have some problems > a) rewriting some of the urls for things like css files and b) with one or > two of the redirects. > > thanks in advance!
Chad Woolley
2007-Dec-30 22:55 UTC
[Cruisecontrolrb-users] Setting up CCRB behind apache proxy
Here''s what I just did (ubuntu as well): * a2enmod proxy (enable proxy module) * add the following to mods-enabled/proxy.conf: <Proxy http://localhost:3333> Order deny,allow Deny from all Allow from all </Proxy> * add the following virtual host (this is a public server so I commented basic auth): Linux thewoolleyweb.com 2.6.16.33-xenU #3 SMP Sun Dec 23 00:38:51 UTC 2007 i686 <VirtualHost *:80> ServerAdmin webmaster at localhost ServerName ci.yourhost.com # <Location /> # AuthType Basic # AuthName "Cruisecontrol" # AuthUserFile /path/to/htpasswd # Require valid-user # </Location> ProxyPass / http://localhost:3333/ ProxyPassReverse / http://localhost:3333/ ProxyPreserveHost on </VirtualHost> * make sure ci.yourhost.com resolves (put it in your local hosts file to test, and add as an alias in your DNS config) HTH, -- Chad On Nov 30, 2007 4:01 PM, Alexander Kabanov <shurikk at gmail.com> wrote:> the following apache configuration works for me (apache 2.2 on ubuntu > feisty) (if this is what you are looking for) > > <VirtualHost *> > ServerAdmin admin at example.com > ServerName cc.exmaple.com > > <Location /> > AuthType Basic > AuthName "Cruisecontrol" > AuthUserFile /path/to/htpasswd > Require valid-user > </Location> > > ProxyPass / http://1.1.1.1:3333/ > ProxyPassReverse / http://1.1.1.1:3333/ > ProxyPreserveHost on > </VirtualHost> > > where 1.1.1.1 your host running CC, im my case is 127.0.0.1 but can be > anything. > > best, > > --Alex > > > On Fri, 2007-11-30 at 13:53 -0800, cchiodo wrote: > > Has anyone had any success setting up CCRB behind a proxy, using apache? > > I''ve tried it 6 ways from tuesday, and it always seems to have some problems > > a) rewriting some of the urls for things like css files and b) with one or > > two of the redirects. > > > > thanks in advance! > > > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users >