nginx配置如下:nginx.confuserwww-data;worker_processesauto;pid/run/nginx.pid;events{worker_connections768;#multi_accepton;}http{sendfileon;keepalive_timeout65;types_hash_max_size2048;include/etc/nginx/mime.types;default_typeapplication/octet-stream;ssl_protocolsTLSv1TLSv1.1TLSv1.2;#DroppingSSLv3,ref:POODLEssl_prefer_server_cipherson;access_log/var/log/nginx/access.log;error_log/var/log/nginx/error.log;gzipon;gzip_disable"msie6";access_log/var/log/nginx/access.log;error_log/var/log/nginx/error.log;gzipon;gzip_disable"msie6";include/etc/nginx/conf.d/*.conf;include/etc/nginx/sites-enabled/*;}sites-enabled>defaultserver{listen80default_server;listen[::]:80default_server;#Addindex.phptothelistifyouareusingPHPindexindex.htmlindex.htmindex.nginx-debian.html;server_name_;location/{#Firstattempttoserverequestasfile,then#asdirectory,thenfallbacktodisplayinga404.proxy_passhttp://127.0.0.1:3000;}location/admin/{root/root/cms-admin/dist;try_files$uri$uri//index.html;indexindex.htmlindex.htm;}location~.*\.(js|css|png|jpg|gif|swf|ico|pdf|mov|mp3|wav|json|woff2)${proxy_passhttp://127.0.0.1:3000;}location/api/{proxy_passhttp://127.0.0.1:3002/api/;}}3000端口跑了一个ssr项目,可以正常访问访问xxx/admin返回500,请问是哪里出了问题可以确定/root/cms-admin/dist下存在index.html文件
紫衣仙女
相关分类