teamcity behind reverse proxy

Answered

Hello,

 

I have setup teamcity behind a reverse proxy using apache 2.4, using SSL.

I configured the httpd.conf like this:

ProxyRequests Off
ProxyPreserveHost On
RewriteEngine on
AllowEncodedSlashes on

#teamcity
ProxyPass /teamcity/app/subscriptions ws://gullbsvs01:8091/teamcity/app/subscriptions connectiontimeout=240 timeout=1200
ProxyPassReverse /teamcity/app/subscriptions ws://gullbsvs01:8091/teamcity/app/subscriptions

ProxyPass /teamcity http://gullbsvs01:8091/teamcity connectiontimeout=240 timeout=1200
ProxyPassReverse /teamcity http://gullbsvs01:8091/teamcity

#hub
ProxyPass /hub http://gullbsvs01:8092/hub connectiontimeout=240 timeout=1200
ProxyPassReverse /hub http://gullbsvs01:8092/hub

#youtrack
ProxyPass /youtrack http://gullbsvs01:8093/youtrack connectiontimeout=240 timeout=1200
ProxyPassReverse /youtrack http://gullbsvs01:8093/youtrack

Nearly everything works fine (viewing projects, add file content replacer settings, etc..) except when we try to edit e.g. a build step we get the following message: Error Code 500: Internal Server Error: The request was rejected by the HTTP filter. Contact the server administrator (12217)

Any idea what we are doing wrong ?

Thanks

 

 

1
1 comment

The configuration seems to be what we recommend in the documentation here https://confluence.jetbrains.com/pages/viewpage.action?pageId=74845225#HowTo...-SetUpTeamCitybehindaProxyServer, except for the rewrite engine and the "allow encoded slashes" option.

 

After a quick google search on the error message, this seems to be an issue with handling some special characters in the URL, so the proxy transformation would seem to be causing the problems. Maybe either the options mentioned above is causing the issues, or the proxy isn't properly configured for this case?

0

Please sign in to leave a comment.