Skip to content

Instantly share code, notes, and snippets.

@mvalipour
Created August 2, 2016 12:48
Show Gist options
  • Save mvalipour/bccb2830c9e7ff025b0361197393abfb to your computer and use it in GitHub Desktop.
Save mvalipour/bccb2830c9e7ff025b0361197393abfb to your computer and use it in GitHub Desktop.
TeamCity Setup with Reverse Proxy
  • Install Teamcity
  • Go to /conf/server.xml and find <connector> node
  • set the following attributes on it
  <Connector port="8080" protocol="org.apache.coyote.http11.Http11NioProtocol"
    connectionTimeout="60000"
    redirectPort="8543"
    useBodyEncodingForURI="true"
    socket.txBufSize="64000"
    socket.rxBufSize="64000"
    tcpNoDelay="1"

    proxyName="teamcity.neworbit.co.uk"
    proxyPort="80"
  />
  • Install IIS
  • Add default site capturing everything on port 80 (and/or 443)
  • Install ARR
  • Go to Default Site > Url Rewriting
  • Add Inbound rule:
  <rule name="teamcity" enabled="true" patternSyntax="Wildcard" stopProcessing="true">
      <match url="*" />
      <action type="Rewrite" url="http://localhost:8080/{R:0}" />
  </rule>
@sappho192
Copy link

YOR ARE MY DEFINITE LIFE SAVER.
I spent nearly 7 hours and finally made it work by your solution.
Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment