Fix IPv6 error

fix an error where upstream site is not found while trying to connect with both IPv4 and IPv6. Setting `localhost` to `127.0.0.1` fixes it.
This commit is contained in:
Marco Ochse 2018-06-26 10:19:35 +02:00 committed by GitHub
parent b19aa6d5c8
commit 804f47f7ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -90,19 +90,19 @@ server {
### Kibana
location /kibana/ {
proxy_pass http://localhost:64296;
proxy_pass http://127.0.0.1:64296;
rewrite /kibana/(.*)$ /$1 break;
}
### ES
location /es/ {
proxy_pass http://localhost:64298/;
proxy_pass http://127.0.0.1:64298/;
rewrite /es/(.*)$ /$1 break;
}
### head standalone
location /myhead/ {
proxy_pass http://localhost:64302/;
proxy_pass http://127.0.0.1:64302/;
rewrite /myhead/(.*)$ /$1 break;
}