Welcome! Log In Create A New Profile

Advanced

Re: POST result: 404

Thomas Ward
April 30, 2020 02:46PM
On 4/30/20 2:09 PM, MarcoI wrote:
> This is the nginx configuration in Ubuntu 18.04 :
>
> server {
> listen 443 ssl http2 default_server;
> server_name ggc.world;
>
> ...
>
> location / {
> proxy_pass http://127.0.0.1:8080;

If I'm reading your config directly, this is passing port 443 to the
backend here at port 8080 on the system locally.  Therefore, the 404
request could be coming from this backend.  Have you verified that this
path actually works in your app when accessed directly on the system? 
If it does not, then the backend app is at fault here.

> ...
>
> And running the go-webserver:
>
> goServer$ go run server-gorillamux.go
>
>
> I get this error: POST https://ggc.world/puser/add 404

.... which is indicative of the issue because of the above mentioned
proxy_pass block being on the app you've built/compiled.  If that
backend doesn't have the capacity to handle the requested path it could
return the 404 which would trickle back and show a 404 via the nginx server.

> Posted at Nginx Forum: https://forum.nginx.org/read.php?2,287914,287914#msg-287914
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx


Thomas

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

POST result: 404

MarcoI April 30, 2020 02:03PM

Re: POST result: 404

Thomas Ward April 30, 2020 02:46PM

Re: POST result: 404

MarcoI April 30, 2020 03:20PM

Re: POST result: 404

Thomas Ward April 30, 2020 03:48PM

Re: POST result: 404

MarcoI May 01, 2020 04:18AM

Re: POST result: 404

MarcoI May 01, 2020 05:53AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 111
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready