Change base URL in FeedService

Answered

Hello :) 

I'm trying to fetch packages from my TeamCity server (10.0.4 - build 42538) to my Octopus server. 
But it keeps throwing this error "No connection could be made because the target machine actively refused it 127.0.0.1:8080"

If i try to open https://TEAMCITYSERVER/httpAuth/app/nuget/v1/FeedService.svc/ it works just fine.
I'm also able to open https://TEAMCITYSERVER/httpAuth/app/nuget/v1/FeedService.svc/Packages/ which lists the packages perfect. 

If I look in the XML from the FeedService.svc the BASE attribute seems to be wrong.
The current base value is xml:base="http://localhost:8080/httpAuth/app/nuget/v1/FeedService.svc/".

 

I really hope that someone can point me in the right direction. :) 

2
2 comments
Avatar
Permanently deleted user

Hello!

 

It look like you have a reverse proxy and it is not properly configured. Please refer to TeamCity HowTo documentation about this: https://confluence.jetbrains.com/pages/viewpage.action?pageId=74845225#HowTo...-SetUpTeamCitybehindaProxyServer 

It seems HTTP proxy does not pass Host header correctly. When browser makes a request it sets Host to hostname from browser address bar. If proxy changes Host to something else, or removes it, then feed will have URLs pointing to localhost, because TeamCity server does not know that there is an HTTP proxy somewhere.

Please check that HTTP proxy preserves original Host header.

2
Avatar
Permanently deleted user

Hey :) 

Thank you so much it solved my issue.

You made my day! 

Have a great day and thanks for the help! 

0

Please sign in to leave a comment.