用反代理后中心服务器一直无法连接
http://o2oa.net:20020/x_file_assemble_control/jaxrs/file/e0a35d45-e04b-45c1-a5d1-e0fd5651b78b/download/stream以下是本程序的127.0.0.1的文件代码
{
"enable": true,
"isPrimaryCenter": true,
"center": {
"enable": true,
"order": 0,
"sslEnable": false,
"redeploy": true,
"port": 20030,
"httpProtocol": "http",
"proxyHost": "www.163.com",#实际域名不是这个我替换了一下。
"proxyPort": 20030,
"scanInterval": 0,
"configApiEnable": true,
"statEnable": true,
"statExclusions": ".js,.gif,.jpg,.png,.css,.ico",
"maxFormContent": 20
},
"application": {
"enable": true,
"port": 20020,
"sslEnable": false,
"proxyHost": "www.163.com",#实际域名不是这个我替换了一下。
"proxyPort": 20020,
"redeploy": true,
"scanInterval": 0,
"includes": [],
"excludes": [],
"weights": [],
"scheduleWeights": [],
"statEnable": true,
"statExclusions": ".js,.gif,.jpg,.png,.css,.ico",
"maxFormContent": 20
},
"web": {
"enable": true,
"port": 5123,
"sslEnable": false,
"proxyHost": "www.163.com",#实际域名不是这个我替换了一下。
"proxyPort": 5123,
"weight": 100,
"dirAllowed": false,
"statEnable": false,
"statExclusions": ".gif,.jpg,.png,.ico",
"cacheControlMaxAge": 0
},
"data": {
"enable": false, ###由于已经使用其它数据库,关闭了默认数据库
"tcpPort": 20050,
"webPort": 20051,
"includes": [],
"excludes": [],
"jmxEnable": false,
"cacheSize": 512,
"logLevel": "WARN",
"maxTotal": 50,
"maxIdle": 0,
"statEnable": true,
"statFilter": "mergeStat",
"slowSqlMillis": 2000
},
"storage": {
"enable": true,
"port": 20040,
"sslEnable": false,
"name": "251",
"accounts": [],
"prefix": "",
"deepPath": false
},
"logLevel": "warn",
"dumpData": {
"enable": true,
"cron": "",
"size": 7,
"path": ""
},
"dumpStorage": {
"enable": true,
"cron": "",
"size": 7,
"path": ""
},
"restoreData": {
"enable": false,
"cron": "",
"path": ""
},
"restoreStorage": {
"enable": false,
"cron": "",
"path": ""
},
"nodeAgentEnable": false,
"nodeAgentPort": 20010,
"nodeAgentEncrypt": true,
"quickStartWebApp": false
}
---------------------------------------------------------------------------------------------------------------------------
以下是NGINX反代配置代码。我就把核心的贴出来。
server {
listen 80;
listen 443 ssl http2;
server_name www.163.com;#真实域名已经替换
ssl_certificate /home/myagent/sites/ssl/site.crt;
ssl_certificate_key /home/myagent/sites/ssl/site.key;
ssl_prefer_server_cipherson;
ssl_ciphers ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:DES-CBC3-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_session_cache shared:SSL:5m;
ssl_session_timeout 5m;
keepalive_timeout 75s;
keepalive_requests 100;
access_log /home/myagent/sites/log/nginx/access.log;
error_log /home/myagent/sites/log/nginx/error.log;
if ($scheme = http) {
return301 https://$host$request_uri;
}
gzip off;
location / {
resolver 58.242.2.2 8.8.8.8;
proxy_pass http://www.163.com:5123;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_redirect off;
client_max_body_size50m;
}
}
已经在防火墙出口开放了本应用程序的几个端口。 http://o2oa.net:20020/x_file_assemble_control/jaxrs/file/b69aac46-570e-4c27-b5af-46796db732d1/download/stream
这是在调试模式下看到的一行代码。连接里面启用 的是https,也就是说在"center": {这个下面设置的代码是没有生效的。这个不知道是不是BUG 小小管理员这测试确实一直没问题,从您的配置来看是较新版本!请问您以前的版本是否也有类似的问题!还是新版本才有问题。现在使用的版本是什么版本! 一,端口全部都开放
二,外网加端口访问全部正常 你反向代理需要开放最少802002020030 三个端口!
要确认域名和端口是通的 已经升级到最新版本。但问题还是一样,没有解决。 20191103191129
这是我目前的版本,之前一直没有做过反代。因为这次疫情在家没事,就准备把这个做反代。但发现我其它的应用都正常,就这个反代一直出问题。
页:
[1]