app mvc behind proxy reverse

Rick Gutierrez xserverlinux at gmail.com
Thu Aug 6 15:48:55 UTC 2020


El jue., 6 ago. 2020 a las 6:29, Francis Daly (<francis at daoine.org>) escribió:
>

Hi francis

>
> Your nginx config says that when the client asks nginx for
> /pais/agregareditar, nginx asks the upstream for /pais/agregareditar --
> your log at "05/Aug/2020:17:20:51" shows this request.
>
> Your nginx config says that when the client asks nginx for
> /agregareditar, nginx asks the upstream for /agregareditar -- your log at
> "05/Aug/2020:17:21:23" shows this request.
>
> It looks like the app is pointing to /agregareditar instead of to
> /pais/agregareditar; and it looks like nginx is not involved in this.
>
>

> Can you see what the html-or-javascript that tells the browser where to
> POST the request, says about where to POST the request?

The country file, is a javascript, performs the task, only that url
that calls is where the controller is, that verifies if it edits or
saves, and the proxy reverse does not interpret it that way because it
is only a folder address, not a file address per that's it send a 404.

I am not a programmer, the country folder has several files.

# Pais ls

AgregarEditar.cshtml ListaPaises.cshtml

Index.cshtml         Pais.txt


>
> > any ideas?
>
> Maybe something like "location = /pais { return 301 /pais/; }" in
> your nginx config will help, if the upstream server should do that but
> does not?

a little slower here, this would have to go down to the first
location, so what you tell me:

location = /pais { return 301 /pais/; }"





>
> Good luck with it,
>
>         f

thank



-- 
rickygm

http://gnuforever.homelinux.com


More information about the nginx mailing list