Nginx reverse proxy cross-domain failed

Front-end port nginx configuration

server {
        listen 8000;
       -sharp server_name _;

        root /home/myftp/dist;
        index index.html index.htm;

        location  /apis {
            rewrite  ^.+apis/?(.*)$ /$1 break;
            include  uwsgi_params;
              proxy_pass   http://127.0.0.1:8889;
       }
        location / {
                try_files $uri $uri/ /index.html;
        }
        error_page 500 502 503 504 /500.html;
        client_max_body_size 20M;
        keepalive_timeout 10;
}

nginx.conf

events {
    worker_connections 1024;
}

http {
    log_format  main  "$remote_addr - $remote_user [$time_local] "$request" "
                      "$status $body_bytes_sent "$http_referer" "
                      ""$http_user_agent" "$http_x_forwarded_for"";

    access_log  /var/log/nginx/access.log  main;

    sendfile            on;
    tcp_nopush          on;
    tcp_nodelay         on;
    keepalive_timeout   65;
    types_hash_max_size 2048;

    include             /etc/nginx/mime.types;
    default_type        application/octet-stream;

    -sharp Load modular configuration files from the /etc/nginx/conf.d directory.
    -sharp See http://nginx.org/en/docs/ngx_core_module.html-sharpinclude
    -sharp for more information.
   -sharp include /etc/nginx/conf.d/*.conf;
    include /etc/nginx/vhost/*.conf;

    server {
        listen       80 default_server;
        listen       [::]:80 default_server;
        server_name  132.232.22.140:8000;
        root         /usr/share/nginx/html;
-sharp       root          /home/myftp/dist

        -sharp Load configuration files for the default server block.
        include /etc/nginx/default.d/*.conf;
        location /{
                proxy_pass   http://127.0.0.1:8000;
        }
        error_page 404 /404.html;
            location = /40x.html {
        }

        error_page 500 502 503 504 /50x.html;
            location = /50x.html {
        }
    }

downloaded the ssl certificate, but the domain name is still on record
the backend service cannot receive data

if viewed on the console, it is

. What"s wrong with

? I read all the tutorials on the Internet. Ask for a big look

Apr.05,2021

listen       80 default_server;
listen       [::]:80 default_server;
server_name  132.232.22.140:8000;
Change

to

listen       8000;
server_name  132.232.22.140;

the case is closed because I use api/xxxx, in the local proxy configuration, so I don't think there is anything wrong with the background code. As a result, this is apis

.
    server {
        listen       80 default_server;
        listen       [::]:80 default_server;
        server_name  132.232.22.140:8000;
        root         /usr/share/nginx/html;
-sharp       root          /home/myftp/dist

        -sharp Load configuration files for the default server block.
        include /etc/nginx/default.d/*.conf;

        location ^~ /api/ {
            proxy_pass http://127.0.0.1:8889;
        }
        location /{
                proxy_pass   http://127.0.0.1:8000;
        }
        error_page 404 /404.html;
            location = /40x.html {
        }

        error_page 500 502 503 504 /50x.html;
            location = /50x.html {
        }
    }

Port 8000 at front end and port 8889 at background. Cross-domain success

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