I have successfully set up an Apache 2 server as a reverse proxy in front of TeamCity.
Now, I'm trying to make it use an additional global password when serving proxy requests.
I added the relevant lines to my proxy.conf file:
Allow from all
AuthName "Restricted Files"
Require user ourusername
ProxyPass / http://localhost:8111/ retry=0
ProxyPassReverse / http://localhost:8111/
This is the result I'm getting:
When I access a static resource of TeamCity (e.g. http://myserver.com/img/ajax-loader.gif), I enter the user/pass I just setup, and manage to access the resource. This is printed by my browser: The site says: "Restricted Files"
The problem is when I try to access the main TeamCity page (or /login.html). There, I get a total of two password prompts - the one above, and an additional password prompt with The site says: "TeamCity"
This prompt is actually for my personal TeamCity user/pass (not the global username I configured above). Instead of getting to the login page, the authentication mechanism happens at the apache level for some reason. When I enter my credentials, I am again prompted with 'The site says: "Restricted Files" ... I'm in a loop with the two passwords.
So, does anyone know how to configure an Apache reverse proxy with password authentication in front of TeamCity?