アプリケーション リンクの作成中、Bitbucket Server の HTTPS リクエストが HTTP の URL にリダイレクトされる

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。

*Fisheye および Crucible は除く

問題

When try to create an Application Links to JIRA, a timed out error message shows up in background and saw this Javascript error message in the browser console:

Mixed content: The page at 'https://bitbucket-url' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://bitbucket-url'. This request has been blocked; the content must be served over HTTPS.

診断

環境

  • A reverse proxy server forwarding HTTPS to Bitbucket Server.

原因

The proxy configuration is not configured properly for Bitbucket Server. For more details information, refer to Securing Bitbucket Server behind nginx using SSL.

ソリューション

Bitbucket Server 5.0 以上

Add 'proxy.name', 'proxy.port', 'secure' and 'scheme' parameters in the bitbucket.properties.

例:

server.scheme=https
server.proxy-port=443
server.proxy-name=mycompany.com
server.secure=true

Bitbucket Server 4.x and below

Add 'ProxyName', 'ProxyPort' and 'scheme' parameters in the Bitbucket Server server.xml

最終更新日 2017 年 5 月 2 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.