Welcome! Log In Create A New Profile

Advanced

Re: app mvc behind proxy reverse

Rick Gutierrez
August 06, 2020 11:50AM
El jue., 6 ago. 2020 a las 6:29, Francis Daly (<francis@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
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

app mvc behind proxy reverse

Rick Gutierrez August 05, 2020 07:32PM

Re: app mvc behind proxy reverse

Francis Daly August 06, 2020 08:30AM

Re: app mvc behind proxy reverse

Rick Gutierrez August 06, 2020 11:50AM

Re: app mvc behind proxy reverse

Francis Daly August 06, 2020 12:26PM

Re: app mvc behind proxy reverse

Rick Gutierrez August 07, 2020 10:18AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 304
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