Server Url not sticking

Hello, I have a non trivial setup and maybe that's why the Server Url is not working.

My TeamCity 9.0.4 server is running on Windows Server 2008 R2 Datacenter. The TC server is hosted on AWS in a VPC. The TC server also has IIS to host a simple SMTP server.
The TC server is connected to my office via amazon VPC VPN. The VPC and office have different subnets. Everything is working good between the TC server and its dependencies in my office (code repo, share drive, etc). I am trying to change the server url so that it work a little nicer.

The TC server is register to a Active Domain, let's name it mydomain.local
and these are the identifiers for the TC server:
Computer name. ci  (full name would be ci.mydomain.local)

I have an nginx server acting as a reverse proxy in my office for the resources in the amazon vpc.
The nginx server ip is:
I have local dns entries pointing to the nginx server. The nginx settings is mapping host name to the appropriate resource in the VPC.
So there is an entry for: pointing to nginx and nginx has that mapped to the TC server.
The setting for TC's server url is

My problem is when I visit I get redirected to I do get a response on the first request to, and the response redirects me to
If I browse to ci.mydomain.local, this host will stick.

Can you please help me get to stick?
Thank you.

Comment actions Permalink


Have you configured Nginx proxy server as described in this documentation section:

Comment actions Permalink

Thank you! It works now.
I had those configurations added but with incorrect values.


Please sign in to leave a comment.