1. Phenomenon
2. Solution
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 4096;
include /etc/nginx/mime.types;
default_type application/octet-stream;
# Load modular configuration files from the /etc/nginx/conf.d directory.
# See http://nginx.org/en/docs/ngx_core_module.html#include
# for more information.
include /etc/nginx/conf.d/*.conf;
server {
listen 8071;
server_name 101.42.104.247;
location/{
root /home/intelligent_evaluation_of_rock_burst/development_project/dist;
index index.html index.htm;
try_files $uri $uri/ /index.html; //Add this line
}
#Dynamic requests
location /api{
include uwsgi_params;
uwsgi_pass 127.0.0.1:5000;
}
# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;
Nginx – s reload nginx
Nginx – t test whether nginx is normal
Read More:
- [Solved] VUE D:\project\vueProject\vue-02\src\components\hello.vue 5:5 error Parsing error: x-invalid-end-tag
- Vue project change directory run error:Multiple assets emit different content to the same filename index.html
- How to Solve Vue project Startup Error (Node Upgrade issue)
- [Solved] Vue Project Error: error ‘v-model‘ directives require no argument vue/valid-v-model
- [Solved] Vue Start Project Error: ValidationError: webpack Dev Server Invalid Options
- The solution to the problem that the custom styles of UI components such as element-ui in the vue project do not take effect
- [Solved] Vue project configurate test environment and package error
- [Solved] vue3vite Error: Failed to resolve import “@vue/server-renderer from “src\App.vue“. Does the file exist
- VScode vue3 Project vetur Error [How to Solve]
- Vue scaffold creation project and run error [Solved]
- [Solved] Vue Project startup error: no eslint configuration found
- [Solved] Vue Project Error: Arrow function should not return assignment
- [Solved] Error spawn CMD enoent errno when starting Vue project: – 4058
- The vue3 project Error: Cannot find module’vue-loader-v16/package.json’
- [Solved] Vue Less error: Webpack project report expected indentation of 0 spaces but found 2
- When starting Vue project: cannot find module ‘webpack cli/bin/config yargs’ error resolution
- [Solved] Vue Project Error: “TypeError: Cannot read properties of undefined (reading ‘init‘)“
- [Solved] Vue Project Error: This relative module was not found
- Vue2.0: How to Use vue3 api to encapsulate Axios
- [Solved] Vue Project Startup Error: getaddrinfo ENOTFOUND xxx