It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Simple Reverse Proxy Not Working (BitBucket 5.6 & Apache)

I have scoured these forums and spent days attempting to fix this problem, but I have not had any luck.

I have a test development server that I am setting up on AWS and I am attempting to redirect both Jira and Bitbucket using Apache Reverse Proxy, to a subdomain and context path on port 80 (for now, ssl later).

I got Jira working in MINUTES. Bitbucket, and its properties file, has given me serious headaches. I get nothing but a white screen when attempting to access my proxy address for bitbucket. Reverting my proxy and using port 7990 directly works.

Please find below relevant snippets from both my apache.conf file, and bitbucket.properties:

 

apache.conf:

<VirtualHost dev.myserver.org:80> 

        ServerAdmin webmaster@localhost

        DocumentRoot /var/www/html

        ServerName dev.myserver.org

        ErrorLog ${APACHE_LOG_DIR}/error.log

        CustomLog ${APACHE_LOG_DIR}/access.log combined

        #LogLevel debug

        ProxyRequests Off

        <Proxy *>

                Order deny,allow

                Require all granted

        </Proxy>

        ProxyPass /bitbucket http://localhost:7990/bitbucket connectiontimeout=5 timeout=300

        ProxyPassReverse /bitbucket http://localhost:7990/bitbucket

        ProxyPass /jira http://localhost:8080/

        ProxyPassReverse /jira http://localhost:8080/

</VirtualHost>

 

bitbucket.properties

#>*******************************************************

#> Migrated to database at jdbc:postgresql://127.0.0.1:5432/bitbucket

#> Updated on 2017-12-31T08:06:53.970Z

#>*******************************************************

server.context-path=/bitbucket

jdbc.driver=org.postgresql.Driver

jdbc.url=jdbc:postgresql://127.0.0.1:5432/bitbucket

jdbc.user=##

jdbc.password=##

server.port=7990

server.secure=false

server.scheme=http

server.proxy-port=80

server.proxy-name=dev.myserver.org

 

1 answer

0 votes
edwin Community Leader Jan 15, 2018

Hi Carmine,

Bitbucket should be running on 7990 without the context path. Also remove the server.port and it will default to the server.xml

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Bitbucket

Contest: Share your custom Bitbucket Pipe and win

Announced in this blog, this holiday season we’re celebrating all things CI/CD and between now and the end of 2019 we’ll be showcasing content, use cases, feature announcements and more. One featur...

755 views 2 4
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you