Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated URLs have $PORT appended #10

Open
molnargab opened this issue Jan 3, 2015 · 0 comments
Open

Generated URLs have $PORT appended #10

molnargab opened this issue Jan 3, 2015 · 0 comments

Comments

@molnargab
Copy link

During deploying a WCF Service to Heroku, it turned out the generated WSDL picks up the port number of the running nginx server for urls, e.g. instead of http://appname.herokuapp.com it was pointing to http://appname.herokuapp.com:1234, where 1234 is the value of the PORT EnvVar.

As the service on $PORT is not available outside Heroku, the WSDL was pointing to unreachable locations.
Heroku Router appends several headers to the request, such as X-Forwarded-Port, which would be the expected port in this case.

Changing fastcgi_param SERVER_PORT $server_port to $http_x_forwarded_port in fastcgi_params fixes this issue (e.g. b26de0c), but I'm not quite sure whether it will have any side effects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant