Category Archives: atlassian

Atlassian Stash and Bamboo on same Server behind Apache Http

I have Stash and Bamboo running on the same Server, and i want to provide them via different Context Paths. e.g. my.server.com/stash and my.server.com/bamboo I already have this configuration in my apache2.conf. But i can only reach stash via its context path with it. I get a 404 for /bamboo. Please help me and thanks in advance!!

<VirtualHost *:80>
 ServerName my.server.com

ProxyRequests Off
<Proxy *>
    Order deny,allow
    Allow from all
</Proxy>

ProxyPass /stash http://localhost:7990/stash
ProxyPassReverse /stash  http://localhost:7990/stash
<Location />
    Order allow,deny
   Allow from all
</Location>


</VirtualHost>
 <VirtualHost *:80>
 ServerName my.server.com

 ProxyRequests Off
 <Proxy *>
    Order deny,allow
    Allow from all
 </Proxy>
     ProxyPass        /bamboo http://localhost:8085/bamboo
      ProxyPassReverse /bamboo http://localhost:8085/bamboo

<Location />
   Order allow,deny
   Allow from all
</Location>

Access to private gitserver with gitlist

I did install Gitlist from web https://s3.amazonaws.com/gitlist/gitlist-0.5.0.tar.gz

I'm using RedHat 6.6 server with the following packages

  • httpd-2.2.15-45.el6.x86_64
  • php-5.3.3-46.el6_6.x86_64
  • git-1.7.1-3.el6_4.1.x86_64
  • mod_authnz_crowd-2.2.2-1.el6.x86_64.rpm

I changed my httpd.conf to user Atlassian Crowd as autenticator, so it contains:

DocumentRoot "/git/GIT_HOME" 
<Directory "/git/GIT_HOME">
    AuthName "Atlassian Crowd"
    AuthType Basic
    AuthBasicProvider crowd
    CrowdAppName git_apache
    CrowdAppPassword mypasswd
    CrowdURL http://myserver.enelint.global:8095/crowd
    Require valid-user
    # aope036: AllowOverride All is needed by gitlist app
    AllowOverride All
    # aope036: CrowdSSLVerifyPeer is not needed
    CrowdSSLVerifyPeer off
</Directory>  

git is installed in /usr/bin/git

gitlist is installed in /git/GIT_HOME/gitlist/

/git/GIT_HOME/gitlist/config.ini contains:

repositories[] = '/git/GIT_HOME/repositories/' ;

I did create a /etc/httpd/conf.d/git.conf file inserting the following statements:

SetEnv REMOTE_USER=$REDIRECT_REMOTE_USER
SetEnv GIT_PROJECT_ROOT /git/GIT_HOME/repositories
SetEnv GIT_HTTP_EXPORT_ALL
ScriptAliasMatch /gitlist/(.*/(HEAD|info/refs|objects/(info/[^/]+|[0-9a-f]{2}/[0-9a-f]{38}|pack/pack-[0-9a-f]{40}\.(pack|idx))|git-(upload|receive)-pack)) /usr/libexec/git-core/git-http-backend/$1

It looks everithing ok, but when I try to clone a repos in /git/GIT_HOME/repositories, I receive 403 error.

C:\Users\aope036>git clone http://[email protected]/gitlist/clumsy-bird.git
Cloning into 'clumsy-bird'...
fatal: unable to access 'http://[email protected]/gitlist/clumsy-bird.git/': The requested URL returned error: 403

Is there anything wrong in my setup/config?

Redirect a confluence page from Proxy Server

I have two servers, one of which is solely running Atlassian Confluence (no apache installed), the other is a DMZ server which is used as a reverse proxy server (mod_proxy), pointing the address http://confluence.office.company.com to http://confluence.

I also want Apache on the reverse proxy server to redirect the page /browsepeople.action to the index page ("/").

The following did not work, and appears to do nothing in terms of redirect (the page still loads).

<VirtualHost *:80>
    ServerAdmin [email protected]
    ServerName confluence.office.company.com

    ProxyRequests off
    ProxyPass /  http://confluence/
    ProxyPassReverse / http://confluence/

    Redirect 301 /browsepeople.action http://confluence.office.company.com/

</VirtualHost>

What is needed to re-direct requests from this page to stop it being displayed? It doesn't even have to be a re-direct, I just want people to not be able to visit the /browsepeople.action page.