nginx报错日志

来源:13-9 服务端项目自动化发布、验证、故障排查与解决

慕UI318403

2017-12-24

2017/12/24 18:13:33 [error] 3880#3076: *2963 upstream timed out (10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond) while connecting to upstream, client: 42.48.104.249, server: ylmmall.cn, request: "POST /user/login.do HTTP/1.1", upstream: "http://127.0.0.1:8080/user/login.do", host: "www.ylmmall.cn"


这是Nginx的报错日志,麻烦老师看一下,访问后台一直是504超时

写回答

2回答

慕UI318403

提问者

2017-12-24

server {

listen 80;

autoindex on;

server_name ylmmall.cn www.ylmmall.cn;

access_log c:/access.log combined;

index index.html index.htm index.jsp index.php;

if ( $query_string ~* ".*[\;'\<\>].*" ){

        return 404;

        }


location = / {

        root C:/product/frontend/mmall-fe/dist/view;

        index index.html;

}


location ~ .*\.html$ {

        root C:/product/frontend/mmall-fe/dist/view;

        index index.html;

}


location / {

        proxy_pass http://127.0.0.1:8080/;

        }


}


谢谢老师赞美,那个服务器ip是我的电脑

0
6
Geely
回复
慕UI318403
弄好了就好。windows的话,用那个软件打开,有上传画对号这种方式就可以给权限啦。
2017-12-27
共6条回复

Geely

2017-12-24

你好,同学,把你的配置文件发上来。http://www.ylmmall.cn/ 还有这个域名,刚才我访问打开了网站,哇塞!赞美!!

还有你的42.48.104.249 这个是哪个服务器的ip  这些说明一下,我需要更多的线索才能帮助你

0
1
慕UI318403
server { listen 80; autoindex on; server_name ylmmall.cn www.ylmmall.cn; access_log c:/access.log combined; index index.html index.htm index.jsp index.php; if ( $query_string ~* ".*[\;'\<\>].*" ){ return 404; } location = / { root C:/product/frontend/mmall-fe/dist/view; index index.html; } location ~ .*\.html$ { root C:/product/frontend/mmall-fe/dist/view; index index.html; } location / { proxy_pass http://127.0.0.1:8080/; } } 谢谢老师赞美,那个服务器ip是我的电脑
2017-12-24
共1条回复

从0开始 独立完成企业级Java电商网站服务端开发

前后端分离,数据库接口设计,架构设计,功能开发,上线运维

9476 学习 · 8804 问题

查看课程