Francis Daly
January 30, 2020 01:46PM
On Thu, Jan 30, 2020 at 08:11:15AM -0500, MarcoI wrote:

Hi there,

> curl on PC-Server (Ubuntu 18.04.03 Server Edition):
>
> (base) marco@pc:~/vueMatters/testproject$ curl -Iki
> http://localhost:8080/
> HTTP/1.1 200 OK

So from the nginx-and-vue server, you can access vue.

> But from a laptop (Ubuntu 18.04.03 Desktop):
> - https://drive.google.com/open?id=1r56ZApxg3gQLRakKGCwI7CriQbbmfrLh
> - https://drive.google.com/open?id=1Dm-PC85pjGfqIeMOS45k3hvV9PANgOH5

That seems to show that from a different machine, you can access nginx,
which reverse-proxies to vue; and the content from vue includes links or
redirects to localhost (and to localhost:8080). And those links will fail.

I cannot tell from these pictures what one http request was made and what
response was received -- maybe the output of "curl -vk https://ggc.world"
from this machine will show something?

If the issue is that vue is returning a http 301 or 302 redirect to
something below localhost or localhost:8080, then either changing that
in vue, or adding proxy_redirect in nginx, may be best.

If the issue is that vue is returning a http 200 with content that links
to localhost, then that should be changed in vue.

I suspect that almost anything in the vue config that mentions localhost,
should be removed. But vue people may be a better source of information
there.

Good luck with it,

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

net::ERR_CONNECTION_REFUSED . How to correctly configure Nginx with Socket.io?

MarcoI January 29, 2020 08:20AM

Re: net::ERR_CONNECTION_REFUSED . How to correctly configure Nginx with Socket.io?

MarcoI January 29, 2020 08:39AM

Re: net::ERR_CONNECTION_REFUSED . How to correctly configure Nginx with Socket.io?

Francis Daly January 29, 2020 03:16PM

Re: net::ERR_CONNECTION_REFUSED . How to correctly configure Nginx with Socket.io?

MarcoI January 30, 2020 08:11AM

Re: net::ERR_CONNECTION_REFUSED . How to correctly configure Nginx with Socket.io?

Anoop Alias January 30, 2020 08:28AM

Re: net::ERR_CONNECTION_REFUSED . How to correctly configure Nginx with Socket.io?

MarcoI January 30, 2020 10:01AM

Re: net::ERR_CONNECTION_REFUSED . How to correctly configure Nginx with Socket.io?

Francis Daly January 30, 2020 01:46PM

Re: net::ERR_CONNECTION_REFUSED . How to correctly configure Nginx with Socket.io?

MarcoI January 30, 2020 11:08AM

Re: net::ERR_CONNECTION_REFUSED . How to correctly configure Nginx with Socket.io?

MarcoI January 31, 2020 04:40AM

Re: net::ERR_CONNECTION_REFUSED . How to correctly configure Nginx with Socket.io?

Francis Daly January 31, 2020 06:10AM

Re: net::ERR_CONNECTION_REFUSED . How to correctly configure Nginx with Socket.io?

MarcoI January 31, 2020 09:05AM

Re: net::ERR_CONNECTION_REFUSED . How to correctly configure Nginx with Socket.io?

MarcoI January 31, 2020 09:21AM

Re: net::ERR_CONNECTION_REFUSED . How to correctly configure Nginx with Socket.io?

Francis Daly January 31, 2020 09:52AM

Re: net::ERR_CONNECTION_REFUSED . How to correctly configure Nginx with Socket.io?

MarcoI January 31, 2020 10:49AM

Re: net::ERR_CONNECTION_REFUSED . How to correctly configure Nginx with Socket.io?

Francis Daly January 31, 2020 03:08PM

Re: net::ERR_CONNECTION_REFUSED . How to correctly configure Nginx with Socket.io?

MarcoI February 01, 2020 04:44AM

Re: net::ERR_CONNECTION_REFUSED . How to correctly configure Nginx with Socket.io?

Francis Daly February 02, 2020 06:08AM

Re: net::ERR_CONNECTION_REFUSED . How to correctly configure Nginx with Socket.io?

MarcoI February 11, 2020 02:28PM

Re: net::ERR_CONNECTION_REFUSED . How to correctly configure Nginx with Socket.io?

MarcoI February 11, 2020 02:31PM

Re: net::ERR_CONNECTION_REFUSED . How to correctly configure Nginx with Socket.io?

Francis Daly February 12, 2020 03:14AM

Re: net::ERR_CONNECTION_REFUSED . How to correctly configure Nginx with Socket.io?

MarcoI February 12, 2020 04:24AM

Re: net::ERR_CONNECTION_REFUSED . How to correctly configure Nginx with Socket.io?

MarcoI April 30, 2020 02:19PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 229
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready