Nginx reverse proxy to iis

the current problem is that no matter which page you visit, the display is the home page, and only the link in the address bar is changing

.

here is a screenshot of my configuration,

location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|js|css|mp4|doc|docx|ppt|pptx|xls|xlsx)$ {
    -sharpexpires 10d;
    proxy_pass http://http://127.0.0.1:8081;
}

location / {
    try_files $uri $uri/ /index.php$is_args$args;
    autoindex on;

}



location /app/ {
    if (!-e $request_filename){
        rewrite  ^/app/(.*)$  /app/public/index.php?s=/$1  last;
        break;
    }
}
-sharprewrite ^/(.*)$ /index.php/$1 last;
location ~ \.php$ {
    proxy_pass http://127.0.0.1:8888;
    proxy_set_header Host $http_host;
    proxy_set_header X-Forwarded-Host $host;
    proxy_set_header Cookie $http_cookie;
    proxy_set_header X-Forwarded-Server $host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Real-IP $remote_addr;

    -sharpinclude snippets/fastcgi-php.conf; 
    -sharpfastcgi_pass php_upstream;        
    -sharpfastcgi_pass unix:/run/php/php7.0-fpm.sock;
}
May.30,2021

location / {
    try_files $uri $uri/ /index.php$is_args$args;
    autoindex on;

}

the / index.php$is_args$args here discards $uri , so only the home page is accessed.

Menu