Nginx reverse proxy solves cross-domain configuration problems

server {
    listen       80;
    server_name  localhost;

    -sharpcharset koi8-r;

    -sharpaccess_log  logs/host.access.log  main;

    location / {
        
       
        proxy_pass http://localhost:8080;
        
    }
    
    location /apis {
        
        rewrite /apis / break;
        proxy_pass http://mooc.com;
    }
}

the vue project runs on port 8080. I would conflict if I listen 8080 directly, so I transferred port 80 to 8080 and / apis to the real interface address. This interface reading is normal, but very slow, about a few minutes before the page will be displayed, direct access to 8080 is instant open, this is why? Is there something wrong with my profile

May.22,2021

change http://localhost:8080 to http://127.0.0.1:8080 try

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-1e3c306-44686.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-1e3c306-44686.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?