Configure nginx non-80 port forwarding how to modify nginx.conf configuration file

it turns out that there is a php project on the server, and the default port 80 is used. Later, I need to add one. Because all the pages are static,
, I want to directly use ngnix to access it, and then modify the apache2 port of the php project to 808Perspect Nginx listening on port 80,

.
    upstream a_pool{
    server 127.0.0.1:8088;
}
upstream b_pool{
    server 127.0.0.1:80;
}
server {
    listen       80;
    server_name  a.com;
    access_log logs/a.log;
    error_log logs/a.error;
    -sharpdemo_pool
    location / {
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_pass http://a_pool;
    }
}
server {
    listen       80;
    server_name  b.com;
    access_log logs/b.log;
    error_log logs/b.error;
    
    -sharpdemo_pool
    location / {
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_pass http://b_pool;
    }
}

this configuration causes both domain names to point to a.com
I want to point to nginx/html/.

when the domain name is a.com, using port 8088 to point to the php project, and
port 80 not to forward it.

you can write a.com all requests are thrown to 8080 port, and b.com requests are only statically processed

server {
    listen  80;
    server_name  a.com;
    access_log logs/a.log;
    error_log logs/a.error;
    index  index.php index.html;
    -sharp PHP
    root   /home/www/html/a.com;

    location / {
        proxy_pass http://127.0.0.1:8080;
        proxy_redirect off;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}

server {
    listen       80;
    server_name  b.com;
    access_log logs/b.log;
    error_log logs/b.error;

    -sharp 
    root   /home/www/html/;
    index  index.html;

    location / {
    }
}
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-1e49732-44d29.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-1e49732-44d29.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?