Using scm-manager with HTTPS

Repository of web frameworks and applications for Microsoft IIS.
User avatar
Posts: 8
Joined: 16 Apr 2014, 19:23

Using scm-manager with HTTPS

16 Apr 2014, 19:34

Hi,

I've configured scm-manager version 1.36 as a Jetty 7 project, generally following the instructions from an article covering installation of scm-manager with Helicon Zoo.

I am now attempting to configure the application to require SSL. So far, I have configured an IIS URL Rewrite rule that will force any HTTP requests to be redirected to HTTPS. This works correctly. Once the request is forwarded to Jetty, it appears to redirect the caller back to HTTP (along with it's session cookie). Eventually, the caller returns on HTTP and is redirected back to HTTPS by the rewrite rule and Jetty accepts the request with redirecting (I'm assuming the initial redirect is the result of trying to add a session cookie).

How does one configure Helicon Zoo and Jetty such that SSL termination is performed by IIS, but Jetty is configured to return "https" for redirects?

Thank you in advance.

User avatar
Posts: 110
Joined: 07 Mar 2012, 10:22

Re: Using scm-manager with HTTPS

17 Apr 2014, 09:28

Hello,

could you try to open 'General settings' page in scm-manager and fix Base URL field to URL started with 'https://'.

Screenshot: http://i.imgur.com/n173Zq2.png

Thanks.

User avatar
Posts: 8
Joined: 16 Apr 2014, 19:23

Re: Using scm-manager with HTTPS

17 Apr 2014, 15:00

Thank you for the suggestion. The configuration option that you indicate is already configured in the manner you suggest. It does not change the results. Also, "Force Base Url" is disabled.

I've noted an error in my description. The initial redirect from Jetty does not seem to be related to adding a cookie, rather it is redirecting to a version of the url with a trailing slash.

For example, the initial request "https://myserver.local/scm" is redirected to to "http://myserver.local/scm/". I am going to attempt to handle this initial redirection in IIS before the request is eventually forwarded.

I also realize I did not state my goal in the initial message. I would like to enable IIS's Require Ssl option for the site. The current redirection from Jetty interferes with this.

User avatar
Posts: 8
Joined: 16 Apr 2014, 19:23

Re: Using scm-manager with HTTPS

17 Apr 2014, 22:26

Creating a URL rewrite rule to ensure that the root URL of the application always ends with a slash has at least masked the problem.

I'm comfortable with this solution. Thank you.

Return to Helicon Zoo

Who is online

Users browsing this forum: No registered users and 11 guests