Ketan Padegaonkar
2008-May-02 03:27 UTC
[Cruisecontrolrb-users] CruiseControlRb behind apache
I managed to find this in the archives, so far: http://www.nabble.com/Setting-up-CCRB-behind-apache-proxy-tt14016053.html#a14099749 Found a better alternative to doing this in my .htaccess instead of messing with the httpd.conf, in case someone is interested: --- snip --- RewriteEngine On ### for cruisecontrol RewriteBase / RewriteRule ^(.*)$ http://localhost:3333/$1 [P] AuthType Basic AuthName "Cruise''s Restricted Files" AuthUserFile /var/www/.htpasswd Require valid-user --- snip --- However is there a better way for me to have cruise running under http://myserver/cruise instead of rooting it at "/". mod_proxy only rendered the html if I did this because the stylesheets and javascripts were in "/javascript" and "/stylesheets" instead of "/cruise/javascript" and "/cruise/ javascipt". Is there a way I could run cruise under /cruise when starting it up, so that my apache acts as a dumb proxy ? Cheers, Ketan Padegaonkar http://swtbot.org/ - a functional testing tool for SWT/Eclipse
I share your goal. this block gets css and js links to work while hosting at a sub dir. <Location /ccrb/> AuthType Basic AuthName "CCRB" AuthUserFile /etc/httpd/conf.d/ccrb.htpasswd Require valid-user ProxyPass http://localhost:3333/ ProxyPassReverse http://localhost:3333/ </Location> however, all of the links within cc.rb try to jump back to ''/''. ex: /projects works if i manually go to /ccrb/projects, but the links within cc.rb are all broken. any apache guru know how to trick cc.rb into thinking its root is ''/ccrb/'' instead of ''/'' ? Ketan Padegaonkar-2 wrote:> > However is there a better way for me to have cruise running under > http://myserver/cruise > instead of rooting it at "/". mod_proxy only rendered the html if I > did this because the stylesheets and javascripts were in "/javascript" > and "/stylesheets" instead of "/cruise/javascript" and "/cruise/ > javascipt". > > Is there a way I could run cruise under /cruise when starting it up, > so that my apache acts as a dumb proxy ? > >-- View this message in context: http://www.nabble.com/CruiseControlRb-behind-apache-tp17013243p19201355.html Sent from the CruiseControl.rb - Users mailing list archive at Nabble.com.
I ended up using a plugin call HTPasswd to give me security.. For me it was much easier then mucking around with Apache. I blogged about it here: http://www.opensourceconnections.com/2008/08/28/securing-cc.rb-from-the-world/ Eric On Thu, Aug 28, 2008 at 10:08 AM, Higgaion <brian at newmedio.com> wrote:> > I share your goal. this block gets css and js links to work while hosting at > a sub dir. > <Location /ccrb/> > AuthType Basic > AuthName "CCRB" > AuthUserFile /etc/httpd/conf.d/ccrb.htpasswd > Require valid-user > ProxyPass http://localhost:3333/ > ProxyPassReverse http://localhost:3333/ > </Location> > > however, all of the links within cc.rb try to jump back to ''/''. ex: > /projects works if i manually go to /ccrb/projects, but the links within > cc.rb are all broken. any apache guru know how to trick cc.rb into thinking > its root is ''/ccrb/'' instead of ''/'' ? > > > > Ketan Padegaonkar-2 wrote: >> >> However is there a better way for me to have cruise running under >> http://myserver/cruise >> instead of rooting it at "/". mod_proxy only rendered the html if I >> did this because the stylesheets and javascripts were in "/javascript" >> and "/stylesheets" instead of "/cruise/javascript" and "/cruise/ >> javascipt". >> >> Is there a way I could run cruise under /cruise when starting it up, >> so that my apache acts as a dumb proxy ? >> >> > > -- > View this message in context: http://www.nabble.com/CruiseControlRb-behind-apache-tp17013243p19201355.html > Sent from the CruiseControl.rb - Users mailing list archive at Nabble.com. > > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users >
that looks like a good approach to the security issue, but i want my ccrb to be publicly accessible on port 80 at a path. I could do this with one of my unused static ips and my firewall, but that seems like overkill if this can be done w/ apache. Eric Pugh-4 wrote:> > I ended up using a plugin call HTPasswd to give me security.. For me > it was much easier then mucking around with Apache. > > I blogged about it here: > http://www.opensourceconnections.com/2008/08/28/securing-cc.rb-from-the-world/ > > Eric > > > On Thu, Aug 28, 2008 at 10:08 AM, Higgaion <brian at newmedio.com> wrote: >> >> I share your goal. this block gets css and js links to work while hosting >> at >> a sub dir. >> <Location /ccrb/> >> AuthType Basic >> AuthName "CCRB" >> AuthUserFile /etc/httpd/conf.d/ccrb.htpasswd >> Require valid-user >> ProxyPass http://localhost:3333/ >> ProxyPassReverse http://localhost:3333/ >> </Location> >> >> however, all of the links within cc.rb try to jump back to ''/''. ex: >> /projects works if i manually go to /ccrb/projects, but the links within >> cc.rb are all broken. any apache guru know how to trick cc.rb into >> thinking >> its root is ''/ccrb/'' instead of ''/'' ? >> >> >> >> Ketan Padegaonkar-2 wrote: >>> >>> However is there a better way for me to have cruise running under >>> http://myserver/cruise >>> instead of rooting it at "/". mod_proxy only rendered the html if I >>> did this because the stylesheets and javascripts were in "/javascript" >>> and "/stylesheets" instead of "/cruise/javascript" and "/cruise/ >>> javascipt". >>> >>> Is there a way I could run cruise under /cruise when starting it up, >>> so that my apache acts as a dumb proxy ? >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/CruiseControlRb-behind-apache-tp17013243p19201355.html >> Sent from the CruiseControl.rb - Users mailing list archive at >> Nabble.com. >> >> _______________________________________________ >> Cruisecontrolrb-users mailing list >> Cruisecontrolrb-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users >> > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > >-- View this message in context: http://www.nabble.com/CruiseControlRb-behind-apache-tp17013243p19207198.html Sent from the CruiseControl.rb - Users mailing list archive at Nabble.com.