Set apache subdomain reverse proxy for bitbucket Edited

I read several documentations "how to make it possible" like these

I not even try to use https for the moment. First I wanna a small success, access bitbucket via my subdomain...


Ubuntu 16.04.2 LTS

Bitbucket 5.0.0







<VirtualHost *:80>
        ServerName mysub.mydomain.mytld
        DocumentRoot /opt/atlassian/bitbucket/5.0.0/

        ProxyRequests Off
        ProxyVia Off

        <Directory /opt/atlassian/bitbucket/5.0.0/>
        Order allow,deny
        Allow from all
        Require all granted

          ProxyPass         /bitbucket  http://mydomain.mytld:7990/
          ProxyPassReverse  /bitbucket  http://mydomain.mytld:7990/




<Directory /opt/atlassian/bitbucket/5.0.0/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted



restart commands

/etc/init.d/apache2 restart

within /opt/atlassian/bitbucket/5.0.0/bin/


bitbucket base url (bitbucket settings administration)



- With the default bitbucket works, when I call http://mydomain:mytld:7990/

- With my custom, when I call http://mysub.mydomain.mytld/ shows me the index of all files in this directory. When I create an index.html file, it is displayed. But no trace of bitbucket.


0 answers

Suggest an answer

Log in or Join to answer
Community showcase
Alexey Matveev
Published Saturday in Jira

How to run Jira in a docker container

Everything below is tested on Ubuntu 17.10. I prefer to use Jira in a docker container because: 1. I can install Jira with a couple of commands. 2. I can start and stop Jira just by starting and s...

130 views 3 5
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot