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
? I read all the tutorials on the Internet. Ask for a big look