[英]Set apache subdomain reverse proxy for bitbucket
我阅读了一些类似的文档“如何使其成为可能”
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
阿帕奇/ 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基本网址(bitbucket设置管理)
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日志中:
“没有协议处理程序对于URL /有效。如果使用的是DSO版本的mod_proxy,请确保使用LoadModule将代理子模块包含在配置中。”
最后问题出在virtualHost配置上
<VirtualHost subdomain.domain.tld:80>
ProxyPass "/" "http://localhost:7990/"
ProxyPassReverse "/" "http://localhost:7990/"
本地主机...代替公共域
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.