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

Problems on latest nginx / non port 80? #4

Open
roynasser opened this issue Jan 21, 2016 · 1 comment
Open

Problems on latest nginx / non port 80? #4

roynasser opened this issue Jan 21, 2016 · 1 comment

Comments

@roynasser
Copy link

Is anyone using this successfully? I'm trying to use this to refresh DNS entries on a containerized structure, however I keep getting errors like:

nginxweb_1 | 2016/01/21 19:28:18 [emerg] 1#0: invalid parameter "9000" in /etc/nginx/conf.d/upstream.conf:2
nginxweb_1 | nginx: [emerg] invalid parameter "9000" in /etc/nginx/conf.d/upstream.conf:2

Here is my upstream.conf

upstream php-upstream {
    jdomain php5 9000;
}

If I remove the 9000 it "works", but doesnt work for my needs as a backend in proxypass as it defaults to port 80 and I get errors saying the backend isnt available at IP:80...

@nzwalker
Copy link

nzwalker commented Mar 3, 2016

You need to specify the port with:

upstream php-upstream {
    jdomain php5 port=9000;
}

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

2 participants