siteserver / cms

SS CMS 基于 .NET Core,能够以最低的成本、最少的人力投入在最短的时间内架设一个功能齐全、性能优异、规模庞大并易于维护的网站平台。
https://sscms.com
GNU Affero General Public License v3.0
3.67k stars 1.21k forks source link

7.0版本这个怎么添加服务器,添加了老是错误 #2586

Open yaokun2010 opened 3 years ago

yaokun2010 commented 3 years ago

server { listen 80; servername ; location / { proxy_pass http://localhost:5000; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection keep-alive; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } }

starlying commented 3 years ago

试试这个:

worker_processes 1;

events { worker_connections 1024; }

http {

  sendfile     on;
  client_max_body_size 500m;

  # SSCMS Nginx Config ...

  server {
    listen        80;
    server_name  _;
    location / {
      proxy_pass         http://localhost:5000;
      proxy_http_version 1.1;
      proxy_set_header   Upgrade $http_upgrade;
      proxy_set_header   Connection keep-alive;
      proxy_set_header   Host $host;
      proxy_cache_bypass $http_upgrade;
      proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header   X-Forwarded-Proto $scheme;
    }
  }
}
yaokun2010 commented 3 years ago

你好 这个第四部我输入进去老是不行  请问下什么原因   谢谢

------------------ 原始邮件 ------------------ 发件人: "siteserver/cms" <notifications@github.com>; 发送时间: 2020年9月21日(星期一) 中午11:53 收件人: "siteserver/cms"<cms@noreply.github.com>; 抄送: "姚昆"<343696456@qq.com>;"Author"<author@noreply.github.com>; 主题: Re: [siteserver/cms] 7.0版本这个怎么添加服务器,添加了老是错误 (#2586)

试试这个: worker_processes 1; events { worker_connections 1024; } http { sendfile on; client_max_body_size 500m; # SSCMS Nginx Config ... server { listen 80; servername ; location / { proxy_pass http://localhost:5000; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection keep-alive; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } } }
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

yaokun2010 commented 3 years ago

贵公司这个能用宝塔面板吗

------------------ 原始邮件 ------------------ 发件人: "siteserver/cms" <notifications@github.com>; 发送时间: 2020年9月21日(星期一) 中午11:53 收件人: "siteserver/cms"<cms@noreply.github.com>; 抄送: "姚昆"<343696456@qq.com>;"Author"<author@noreply.github.com>; 主题: Re: [siteserver/cms] 7.0版本这个怎么添加服务器,添加了老是错误 (#2586)

试试这个: worker_processes 1; events { worker_connections 1024; } http { sendfile on; client_max_body_size 500m; # SSCMS Nginx Config ... server { listen 80; servername ; location / { proxy_pass http://localhost:5000; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection keep-alive; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } } }
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

starlying commented 3 years ago

宝塔还没,我们将来会做支持

yaokun2010 commented 3 years ago

那我前面发的图片麻烦能帮我解决下吗,

---原始邮件--- 发件人: "tim"<notifications@github.com> 发送时间: 2020年9月22日(周二) 上午7:47 收件人: "siteserver/cms"<cms@noreply.github.com>; 抄送: "yaokun2010"<343696456@qq.com>;"Author"<author@noreply.github.com>; 主题: Re: [siteserver/cms] 7.0版本这个怎么添加服务器,添加了老是错误 (#2586)

宝塔还没,我们将来会做支持

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

yaokun2010 commented 3 years ago

老板,能给我恢复下吗,有没有扣扣群

---原始邮件--- 发件人: "tim"<notifications@github.com> 发送时间: 2020年9月22日(周二) 上午7:47 收件人: "siteserver/cms"<cms@noreply.github.com>; 抄送: "yaokun2010"<343696456@qq.com>;"Author"<author@noreply.github.com>; 主题: Re: [siteserver/cms] 7.0版本这个怎么添加服务器,添加了老是错误 (#2586)

宝塔还没,我们将来会做支持

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

yaokun2010 commented 3 years ago

前面我发的图片

---原始邮件--- 发件人: "tim"<notifications@github.com> 发送时间: 2020年9月22日(周二) 上午7:47 收件人: "siteserver/cms"<cms@noreply.github.com>; 抄送: "yaokun2010"<343696456@qq.com>;"Author"<author@noreply.github.com>; 主题: Re: [siteserver/cms] 7.0版本这个怎么添加服务器,添加了老是错误 (#2586)

宝塔还没,我们将来会做支持

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

yaokun2010 commented 3 years ago

我的是Linux8.0系统的   弄不上去

------------------ 原始邮件 ------------------ 发件人: "tim"<notifications@github.com>; 发送时间: 2020年9月22日(星期二) 上午7:47 收件人: "siteserver/cms"<cms@noreply.github.com>; 抄送: "姚昆"<343696456@qq.com>; "Author"<author@noreply.github.com>; 主题: Re: [siteserver/cms] 7.0版本这个怎么添加服务器,添加了老是错误 (#2586)

宝塔还没,我们将来会做支持

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

yaokun2010 commented 3 years ago

如果在云服务器环境中安装,请先配置安全组,确保网站地址及端口能够被外网访问。    这个意思是不是要把服务器安装成面板的形式?

------------------ 原始邮件 ------------------ 发件人: "tim"<notifications@github.com>; 发送时间: 2020年9月22日(星期二) 上午7:47 收件人: "siteserver/cms"<cms@noreply.github.com>; 抄送: "姚昆"<343696456@qq.com>; "Author"<author@noreply.github.com>; 主题: Re: [siteserver/cms] 7.0版本这个怎么添加服务器,添加了老是错误 (#2586)

宝塔还没,我们将来会做支持

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.