I read several documentations "how to make it possible" like these
https://httpd.apache.org/docs/2.4/vhosts/examples.html
I not even try to use https for the moment. First I wanna a small success, access bitbucket via my subdomain...
Running:
Ubuntu 16.04.2 LTS
Bitbucket 5.0.0
Apache/2.4.18
/var/atlassian/application-data/bitbucket/shared/bitbucket.properties:
server.port=7990 server.secure=false server.scheme=http server.proxy-port=80 server.redirect-port=80 server.proxy-name=mysub.mydomain.mytld
/etc/apache2/sites-available/000-default.conf
<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 </Directory> ProxyPass /bitbucket http://mydomain.mytld:7990/ ProxyPassReverse /bitbucket http://mydomain.mytld:7990/ </VirtualHost>
/etc/apache2/apache2.conf
...... <Directory /opt/atlassian/bitbucket/5.0.0/> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory> ......
restart commands
/etc/init.d/apache2 restart within /opt/atlassian/bitbucket/5.0.0/bin/ ./stop-bitbucket.sh ./start-bitbucket.sh
bitbucket base url (bitbucket settings administration)
http://mysub.mydomain.mytld
- With the default bitbucket.properties bitbucket works, when I call http://mydomain:mytld:7990/
- With my custom bitbucket.properties, 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.
Answer above works as stated. with exception that. you might not have contact. /bitbucket. take those out. also you may have to create properties files mentioned. bitbucket.properties if you installed an eval. ( this file only created when app needs to do something that rewires it ie migrations.
other than that this original post as is worked , thanks 'nope nope'
Did you ever solve this? I have been struggling all day with same.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What does your config look like? Per my answer, if it has DocumentRoot and Directory sections they might be getting in the way.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
A couple of things to try:
In short, it looks like Bitbucket is working, but apache isn't configured correctly to proxy through to it. Section 2 in the first page you linked to shows the sum total of config you should need, anything extra might be getting in the way.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you ever solve this? I have been struggling all day with same behavior.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.