1、/etc/nginx/conf.d/default.conf,添加如下信息:
location / {try_files $uri $uri/ @router;root /home/axs-zx/Data/VueData/system;index index.html index.htm;#下面就是新添加的信息,解决504错误proxy_send_timeout 300;proxy_read_timeout 300;proxy_connect_timeout 300;}
1、/etc/nginx/nginx.conf,添加如下信息:
http {include /etc/nginx/mime.types;default_type application/octet-stream;client_max_body_size 200M; 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;keepalive_timeout 65;#gzip on;include /etc/nginx/conf.d