<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 4/30/20 2:09 PM, MarcoI wrote:<br>
</div>
<blockquote type="cite"
cite="mid:edf3ba6c1ac5fe3ca48c5dad03a8412d.NginxMailingListEnglish@forum.nginx.org">
<pre class="moz-quote-pre" wrap="">This is the nginx configuration in Ubuntu 18.04 :
server {
listen 443 ssl http2 default_server;
server_name ggc.world;
...
location / {
proxy_pass <a class="moz-txt-link-freetext" href="http://127.0.0.1:8080" moz-do-not-send="true">http://127.0.0.1:8080</a>;</pre>
</blockquote>
<p>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.<br>
</p>
<blockquote type="cite"
cite="mid:edf3ba6c1ac5fe3ca48c5dad03a8412d.NginxMailingListEnglish@forum.nginx.org">
<pre class="moz-quote-pre" wrap=""> ...
And running the go-webserver:
goServer$ go run server-gorillamux.go
I get this error: POST <a class="moz-txt-link-freetext" href="https://ggc.world/puser/add" moz-do-not-send="true">https://ggc.world/puser/add</a> 404</pre>
</blockquote>
<p>... 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.</p>
<p> </p>
<blockquote type="cite"
cite="mid:edf3ba6c1ac5fe3ca48c5dad03a8412d.NginxMailingListEnglish@forum.nginx.org">
<pre class="moz-quote-pre" wrap="">Posted at Nginx Forum: <a class="moz-txt-link-freetext" href="https://forum.nginx.org/read.php?2,287914,287914#msg-287914" moz-do-not-send="true">https://forum.nginx.org/read.php?2,287914,287914#msg-287914</a>
_______________________________________________
nginx mailing list
<a class="moz-txt-link-abbreviated" href="mailto:nginx@nginx.org" moz-do-not-send="true">nginx@nginx.org</a>
<a class="moz-txt-link-freetext" href="http://mailman.nginx.org/mailman/listinfo/nginx" moz-do-not-send="true">http://mailman.nginx.org/mailman/listinfo/nginx</a>
</pre>
</blockquote>
<p><br>
</p>
<p>Thomas<br>
</p>
</body>
</html>