Team City and Octopus on the same server and https

Hi

I’ve installed Octopus on the same server as Team City

I’d like to access them via urls like the below without any port numbers:

https://octopus.xxx.com
https://teamcity.xxx.com

I can get each app to work independently but cant get them to run side by site

I believe this is because when you setup Team City on 443, it hogs the whole 443 port without allowing for a host header. I determined this by running this

H:>netstat -o -n -a

Active Connections

Proto Local Address Foreign Address State PID
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 2648
TCP 0.0.0.0:135 0.0.0.0:0 LISTENING 764
TCP 0.0.0.0:383 0.0.0.0:0 LISTENING 3896
TCP 0.0.0.0:443 0.0.0.0:0 LISTENING 2648
TCP 0.0.0.0:445 0.0.0.0:0 LISTENING 4

PID 2648 was Java aka Team City

Any suggestions? I’m hoping not to have to do this: http://bronumski.blogspot.nl/2010/10/host-teamcity-in-iis7.html

Thanks

Sam

Hi Sam,

Thanks for getting in touch! As far as I know, there is no work around here. In order for them to both work on the same server, you will need to change one of the ports. The Octopus server manager lets you configure a new port for the binding fairly easily. The following documentation has information relevant to doing so.
https://octopus.com/docs/how-to/expose-the-octopus-web-portal-over-https

Aside from that, your options are limited here. Octopus is not able to share a port on the same server as TeamCity.

Let me know how you go or if you have any further questions here.

Best regards,
Daniel