我阅读了几篇文章"如何使它成为可能"喜欢这些
confluence.atlassian.com/kb/proxying-atlassian-server-applications-with-apache-http-server-mod_proxy_http-806032611.html
httpd.apache.org/docs/2.4/vhosts/examples.html
我暂时不尝试使用https。首先,我想取得一点成功,通过我的子域名访问bitbucket ......
运行:
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
ProxyRequests Off
ProxyVia Off
ProxyPass "/" "http://mydomain.mytld:7990/"
ProxyPassReverse "/" "http://mydomain.mytld:7990/"
</VirtualHost>
bitbucket base url(bitbucket settings administration)
http://mysub.mydomain.mytld
重启命令
/etc/init.d/apache2 restart
within /opt/atlassian/bitbucket/5.0.0/bin/
./stop-bitbucket.sh
./start-bitbucket.sh
使用我的自定义bitbucket.properties,当我调用http://mysub.mydomain.mytld/时显示500内部错误。在apache日志中:
&#34;没有协议处理程序对URL /有效。如果您使用的是DSO版本的mod_proxy,请确保使用LoadModule将代理子模块包含在配置中。&#34;
答案 0 :(得分:0)
最后问题是virtualHost配置错误
<VirtualHost subdomain.domain.tld:80>
ProxyPass "/" "http://localhost:7990/"
ProxyPassReverse "/" "http://localhost:7990/"
localhost ...而不是公共域