Nginx reverse proxy Apache pseudo-static

server {
  listen       80;
  server_name  test.com;
  root   "D:/test.com/";
  location / {
    index  index.html index.htm index.php;
  }
  location ~ \.php(.*)$ {
    rewrite ^/(.*)$ index.php/$1 break;
    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_pass  http://test.com:8080;
  }
}

I want to reverse proxy from port 80 of nginx to port 8080 of apache. How can I achieve the pseudo-static of .php?

It is not necessary to use nginx instead of Apache under

Windows
because the efficiency of nginx under Windows is low, so it is not recommended to be used in production environment
just use Apache to run php and static

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3675d-2c01b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3675d-2c01b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?