部署了一个系统在线上,开始时通过ip(端口80)访问没有问题,可以正常登录.
但是使用了配置了域名访问后,在edge浏览器显示”嗯… 无法访问此页面“,在谷歌可以进入登录页面,但是当发送登录请求后f12显示
ping域名也可以ping通,请问这是什么原因?
api/login:1 Failed to load resource: the server responded with a status of 503 (Service Unavailable)
下面是nginx的配置文件:
server {
listen 80;
server_name tupan.lamper.top; # 将它改为ip访问没有问题
charset utf-8;
location / {
alias /www/tupan/dist/;
try_files $uri $uri/ /index.html;
index index.html index.htm;
}
location /api {
proxy_pass http://localhost:7090/api;
proxy_set_header X-Forwarded-For $remote_addr;
}
}