app mvc behind proxy reverse

Rick Gutierrez xserverlinux at gmail.com
Wed Aug 5 23:31:26 UTC 2020


Hi, I am having some problems to load an app made in mvc, when I
access the url and I want to edit a table to make a change, the proxy
returns me to the root of the project, and it does not stay in
app/pais

I paste the url log, where it says it can't find resource 404

https://pastebin.com/AeRRrMRi

1.1.1.1 - - [05/Aug/2020:17:21:23 -0600] "POST /agregareditar
HTTP/2.0" 404 709 "https://test.domain.com/pais" "Mozilla/5.0
(Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like
Gecko) Version/13.1.2 Safari/605.1.15"

proxy reverse config:



location / {

        proxy_http_version 1.1;
        proxy_set_header Connection "";
        proxy_set_header Host $host;
proxy_set_header X-Real-IP  $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_connect_timeout 900s;
        proxy_send_timeout 900s;
        proxy_read_timeout 900s;
proxy_buffer_size 64k;
proxy_buffers 16 32k;
proxy_busy_buffers_size 64k;
proxy_redirect off;
proxy_request_buffering off;
proxy_buffering off;
        proxy_pass http://backend29;
}


=== backend config

upstream backend29 {

    server 192.168.11.95:80; ## web windows

    keepalive 2;

}

server {

listen 80;

        server_name test.domain.com; #YourIP or domain

pagespeed unplugged;

        return 301 https://$server_name$request_uri;  # redirect all to use ssl


    }


any ideas?


-- 
rickygm

http://gnuforever.homelinux.com


More information about the nginx mailing list