Enabled HTTPS - Unable to connect

I uploaded the SSL certificate and enabled the HTTPS redirect. I know, I should have tested the HTTPS first. Now, I can't connect at all. I thought I changed the port to 8443 (we have Apache on 443), but I have stopped Apache and restarted the TeamCity service, and I can't connect on 443, 8443, or the original port, 8111. In fact, if I go to http://servername:8111, I get redirected to https://servername:8111 and I get this:

 

0
8 comments

For some reason, I am unable to post images in this forum all of a sudden, but it says this:

The connection for this site is not secure

servername sent an invalid response.

 

ERR_SSL_PROTOCOL_ERROR


 

0

I was able to revert it by editing main-config.xml.

0

However, I can't get the HTTP to HTTPS redirect to work. If I load http://servername:8111, I get, it tries to redirect to https://servername:8111. Could be my browser settings, but we've made that work for our own site.

 

0

Hi,

If HTTPS redirect is enabled, it should function properly. Please check if the server URL setting on the Global Settings page is configured as https://servername:8111.

If it is configured as such, kindly modify the redirect URL by adjusting the server URL setting on the Global Settings page.
 

0

Nope, it's configured in Global Settings as https://servername:8443. I just tried again, and this is what happens:

This site can’t provide a secure connection

servername sent an invalid response.

  • Try running Windows Network Diagnostics.

ERR_SSL_PROTOCOL_ERROR

 

0
Hi.

The "This Site Can't Provide a Secure Connection Error" typically arises from issues like invalid SSL certificates, cache problems, misconfigured time and date settings, or HTTPS connection issues on a website. Internet browsers may show similar error messages for various reasons.

To address this, you can follow the troubleshooting steps outlined in this video: https://www.youtube.com/watch?v=uSR2Ijy4GdI.
0

I have managed web servers for decades, so I'm aware of those issues. My SSL connection works fine over the designated port, https://servername:8443, it's the redirect that does not work, it keeps going from:

http://servername:8111

to 

https://servername:8111

Which of course, does not work as SSL is not enabled on 8111. It should be redirecting to https://servername:8443, but it's not. I've managed Tomcat servers before, which is what TeamCity runs on, and I've looked at the config a bit, but maybe I just need to dig into this one more, I was hoping to not have to hack the solution.

0

Hi, 

If clearing the browser cache or trying a different browser doesn't resolve the issue, could you confirm whether you made any modifications to the default file <tc_home>/conf/server.xml?

If possible, consider restoring it to the default configuration and testing again. If the problem persists or if you haven't modified the server.xml file, I suggest examining the teamcity-server.log for relevant information. Sharing the teamcity-server.log with us would be beneficial for further investigation.

Large files can be uploaded via https://uploads.jetbrains.com/. Please let us know the exact id after the upload.

0

Please sign in to leave a comment.