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

[emerg] 1#1: host not found in upstream hostname.example.com in /etc/nginx/conf.d/app.conf:26 #98

Open
MartinX3 opened this issue Nov 15, 2020 · 0 comments

Comments

@MartinX3
Copy link

MartinX3 commented Nov 15, 2020

Following the instructions I get
[emerg] 1#1: host not found in upstream hostname.example.com in /etc/nginx/conf.d/app.conf:26
(hostname.example.com is just an example because I don't want to make my subdomain public registered on a free dyndns service)
The dns name is connected with only IPv6.
The hostname points to the ocrrect IPv6 and I can use it for every service including ssh.

I fixed this error by including

upstream hostname.example.com {
    server localhost;
}

in the top of data/nginx/conf.d/app.conf

Do you know why this happen?
Is my solution just a dirty workaround?

My server is an Arch Linux server running in a proxmox VM in my university.
One networkcard is connected with the internal university network and only accessible via VPN.
The other networkcard has a public IPv6 address, so I can connect it with my hostname and use it for public internet services.

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