Node app inside nginx on K8s does not work

Francis Daly francis at daoine.org
Tue Jun 18 19:49:22 UTC 2019


On Tue, Jun 18, 2019 at 03:33:32PM +0000, Suleman Butt wrote:

Hi there,

>       location ~ ^/proxy/(.*)$ {
>       proxy_pass http://localhost:3000/$1$is_args$args;

> I just get this in the browser:
> 
> [cid:image002.png at 01D525FB.F2988B00]
> 
> Any suggestion what is wrong in my docker file or nginx.conf?

The picture suggests that you requested the url "/proxy".

The location will only handle urls that start with "/proxy/".

Perhaps add "location = /proxy { return 301 /proxy/; }"

Or perhaps go to the url that ends with the /.

	f
-- 
Francis Daly        francis at daoine.org


More information about the nginx mailing list