1金币
"Message": "Failed to bind to address http://[::]:80: address already in use.",
"Data": null,
"InnerException": {
"$type": "Microsoft.AspNetCore.Connections.AddressInUseException, Microsoft.AspNetCore.Connections.Abstractions",
"Message": "Address already in use",
"Data": {
"$type": "System.Collections.ListDictionaryInternal, System.Private.CoreLib"
错误日志部分介绍如上,
当前服务器安装了宝塔面板,有nginx 猜测是nginx监听了80端口导致活字格启动发布的应用失败。
解决方案???
在不抛弃宝塔面板的情况下,有什么妙计???
我能想到的是端口转发,Nginx 端口转发 到活字格绑定的域名加端口。
#server {
# listen 80;
# server_name 域名;
# location / {
# proxy_pass http://127.0.0.1:要转发的端口;
# proxy_set_header Host 127.0.0.1:要转发的端口;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-For
# $proxy_add_x_forwarded_for;
# proxy_set_header X-Forwarded-Proto $scheme;
# proxy_hide_header 'x-frame-options';
# }
# }
#
实现域名不加端口的方式访问 调整到活字格
谁能帮忙看看 有什么细节错误???
|
|