Only use https to access teamcity server

Read this blog before you do my steps: http://paulstovell.com/blog/teamcity-ssl-on-windows-with-redirect-from-http

If the steps in the article didn’t help you, then try with my solution 🙂

1. In the connector, only use port 443 as a connector, this mean, you have to remote the connector for port 80

Teamcity443

2. In IIS -> Default Website (port 80), change “http redirect” to your https

HttpRedirect

Add teamcity.khetkhet.se in the internal dns (otherwise, you need to add it in the host file 172.27.89.113 teamcity.khetkhet.se).

It is pointing to the internal ip of machinename: 172.27.89.113

Change the internal dns to point to the external ip of the server


The certificate above has expired, and we have to replace it with new one. Follow this guide to solve it: http://paulstovell.com/blog/teamcity-ssl-on-windows-with-redirect-from-http

Some highlights:

In C:/Teamcity/conf/server.xml

2019-07-16_0958

In C:/Teamcity/conf/web.xml

2019-07-16_0959

Remember to open firewall port for 443.