Accessing externalStatus.html page from Local Area Network or Internet

I wonder if this is a bug ... or not.

When I insert the following scriptlet in a web page :
<script type="text/javascript" src="http://<>/externalStatus.html?js=1&withCss=true&projectId=project2&"> </script>

The base url used for links and images is
So, when I access the web page from my local network, it works, but it doesn't when trying to access through the internet.

Is this a "normal" behaviour ? If not, how can I correct it ? Should I change a config file ?

Thanks in advance.

-:: Pierre-Alain Galtier ::-

Comment actions Permalink

please ignore this question.
It seems to be more an apache/tomcat question than a Teamcity one.

I'm publishing the teamcity server through an apache httpd server as virtual host (using the ProxyPass/ProxyPassReverse directives) and it appears that I missed a rewrite rule.

If you already succeeded in publishing Teamcity this way, I will be very happy to learn

-:: Pierre-Alain Galtier ::-

Comment actions Permalink

But, I realized that the Rewrite rules won't change the content of t
he page but only the url.

Maybe the solution is in a Teamcity change.

Comment actions Permalink


  When the content of the external status is generated, TeamCity uses the hostname of the HTTP request sent to the Tomcat.
  So if your RewriteRule changes the request and the actual request is sent to internal URL, the generated page will contain internal host names as well.

  So, to fix the problem, you need to make sure that TeamCity server responds to the external URL directly, without rewriting rules.

  Hope this helps,

Comment actions Permalink

Thanks for the information.

In order to force tomcat to think proxied requests were directed to on port 80,  I've updated the tomcat's server.xml file:

<Connector port="8800" protocol="HTTP/1.1"
               redirectPort="8443" />

changed to :

<Connector port="8800" protocol="HTTP/1.1"
               redirectPort="8443" proxyName="" proxyPort="80"/>

for the logs (and other people trying this way of publishing too) my settings were :

Apache httpd (as proxy)
Tomcat (port: 80) (port : 8800)

in my httpd.conf file, the virtual host was define as follow:

    ProxyPreserveHost Off
    ProxyPass /
    ProxyPassReverse /
    ErrorLog logs/
    CustomLog logs/ common

And it works !

Many thanks.

-:: Pierre-Alain Galtier ::-


Please sign in to leave a comment.