起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

12
返回列表 发新帖
楼主: win3394393

[处理中3] 导出报表无反应

  [复制链接]

535

主题

1198

帖子

2565

积分

金牌会员

Rank: 6Rank: 6

积分
2565
QQ
 楼主| 发表于 2022-9-24 09:57:08 | 显示全部楼层
本帖最后由 win3394393 于 2022-9-24 13:26 编辑
jishuang 发表于 2022-9-20 10:11
这个配置为UIServer外网访问的地址,或者把配置去掉

报表导出   按照你的说的方法  http模式可以导出  但是https模式情况下   还是导出不了   这个要怎么处理看浏览器的调试模式报错
Mixed Content: The page at 'https://tz.cscec.com/x5/portal/index.w?timestamp=1663985128484' was loaded over HTTPS, but requested an insecure form action 'http://tz.cscec.com/x5/UI/system/service/report/printGetFile.j?filename=com…=%E7%AB%8B%E9%A1%B9%E8%AF%84%E5%AE%A1%E5%8F%B0%E8%B4%A6.xls&outputType=xls'. This request has been blocked; the content must be served over HTTPS.



查看了论坛上的方法   修改配置文件   直接在打开报表的时候就报错了
   http://bbs.wex5.com/forum.php?mo ... 5&pid=165670056
<?xml version="1.0" encoding="utf-8"?>

<config>
  <version>6332</version>  
  <distributed>false</distributed>  
  <ui-server>http://localhost:8080/x5</ui-server>  
  <!-- 以下配置只适用于BeX5 -->  
  <default-user>
    <name>x5sys</name>  
    <password>Passw0rd_m77ki</password>
  </default-user>  
  <business-server>http://localhost:8080/BusinessServer</business-server>  
  <doc-server>http://localhost:8080/DocServer</doc-server>  
  <report-server>https://localhost:8080/ReportServer/reportservice</report-server>  
  <auth-server>http://localhost:8080/BusinessServer</auth-server>  
  <!-- <push-server>http://localhost:8080/PushServer</push-server> -->  
  <mqtt-server>tcp://localhost:1883</mqtt-server>  
<!-- <external-address>[请给出服务器的外网地址]</external-address>   -->
  <license-server>http://localhost:9099/LicenseServer</license-server>  
  <!-- 微服务:当前要求每个微服务能访问所有的模型资源(包括BIZ和UI), 文档服务器的存储目录共享一个 -->  
  <!-- 以下配置是微服务版本需要的
        <micro-service>true</micro-service>  
          <gateway>http://192.168.1.40</gateway>  
          <gateway-admin>http://192.168.1.40:8001</gateway-admin>  
          <local-addr>http://192.168.1.89:8080</local-addr>  
          <local-apps>[请给出本地app名, 例如OA,HR,portal,portal2,system, 访问这些biz和ui资源时会转发到当前微服务]</local-apps>
          <redis-host>127.0.0.1</redis-host>
          <redis-port>6379</redis-port>
          <redis-password></redis-password>           
        -->
</config>



微信图片_20220924131042.jpg
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
35918
发表于 2022-9-26 11:15:36 | 显示全部楼层
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

535

主题

1198

帖子

2565

积分

金牌会员

Rank: 6Rank: 6

积分
2565
QQ
 楼主| 发表于 2022-10-9 00:08:04 | 显示全部楼层
本帖最后由 win3394393 于 2022-10-9 00:14 编辑

按照上面的方法试了  不好使  还是报之前的错误


#user  nobody;
worker_processes  1;

#error_log  logs/error.log;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;

#pid        logs/nginx.pid;


events {
    worker_connections  1024;
}


http {
    include       mime.types;
    default_type  application/octet-stream;

    #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
    #                  '$status $body_bytes_sent "$http_referer" '
    #                  '"$http_user_agent" "$http_x_forwarded_for"';

    #access_log  logs/access.log  main;
       
       


# 502 bad gateway 错误解决配置 start
    proxy_buffer_size 64k;
    proxy_buffers 32 32k;
    proxy_busy_buffers_size 128k;
    # 502 bad gateway 错误解决配置 end

    sendfile        on;
    #tcp_nopush     on;

    #keepalive_timeout  0;
    keepalive_timeout  7200;

    #gzip  on;
       
       
        upstream tz.cscec.com {
          server 192.168.210.98:8080;
       
          ip_hash;
    }
       
       
       
    server {
        listen       80;
        server_name tz.cscec.com;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

        location / {
            #root   html;
            #index  index.html index.htm;
                        proxy_http_version 1.1;
                         proxy_redirect  off;
                        proxy_read_timeout  7200;
                        proxy_send_timeout  7200;
                        proxy_connect_timeout  7200;
                        proxy_set_header   Host $host;
                        proxy_pass  http://tz.cscec.com;  #请求转向tz.cscec.com定义的服务器列表
                        proxy_set_header   Upgrade $http_upgrade;
                        proxy_set_header   X-Real-IP $remote_addr;
                        proxy_set_header   Connection $http_connection;
                        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
                        proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
                        proxy_max_temp_file_size 0;
                        client_max_body_size  1000m;
                        add_header backendIP $upstream_addr;
                        add_header backendCode $upstream_status;
        }

        #error_page  404              /404.html;

        # redirect server error pages to the static page /50x.html
        #
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }

        # proxy the PHP scripts to Apache listening on 127.0.0.1:80
        #
        #location ~ \.php$ {
        #    proxy_pass   http://127.0.0.1;
        #}

        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
        #
        #location ~ \.php$ {
        #    root           html;
        #    fastcgi_pass   127.0.0.1:9000;
        #    fastcgi_index  index.php;
        #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
        #    include        fastcgi_params;
        #}

        # deny access to .htaccess files, if Apache's document root
        # concurs with nginx's one
        #
        #location ~ /\.ht {
        #    deny  all;
        #}
    }


    # another virtual host using mix of IP-, name-, and port-based configuration
    #
    #server {
    #    listen       8000;
    #    listen       somename:8080;
    #    server_name  somename  alias  another.alias;

    #    location / {
    #        root   html;
    #        index  index.html index.htm;
    #    }
    #}


    # HTTPS server
    #
    server {
        listen       443 ssl;
        server_name  tz.cscec.com;

        ssl_certificate      cscec.com.crt;
        ssl_certificate_key  cscec.com.key;
        ssl_session_cache    shared:SSL:1m;
        ssl_session_timeout  5m;
               
                ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
                ssl_ciphers AESGCM:ALL:!DH:!EXPORT:!RC4:+HIGH:!MEDIUM:!LOW:!aNULL:!eNULL;
        ssl_prefer_server_ciphers  on;

        location / {
            #root   html;
            #index  index.html index.htm;
                        #proxy_http_version 1.1;
                        #proxy_redirect  off;
                         proxy_redirect ~^http://([^:]+)(:\d+)?(.*)$ https://$1$3;
                        proxy_read_timeout  7200;
                        proxy_send_timeout  7200;
                        proxy_connect_timeout  7200;
                        proxy_set_header   Host $host;
                        proxy_pass  http://tz.cscec.com;  #请求转向tz.cscec.com定义的服务器列表
                        proxy_set_header   Upgrade $http_upgrade;
                        proxy_set_header   X-Real-IP $remote_addr;
                        proxy_set_header   Connection $http_connection;
                        proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
                        proxy_set_header X-Forwarded-Proto $scheme;
                        proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
                        proxy_max_temp_file_size 0;
                        client_max_body_size  1000m;
                        add_header backendIP $upstream_addr;
                        add_header backendCode $upstream_status;
        }
               
                error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }
    }

}

回复 支持 反对

使用道具 举报

535

主题

1198

帖子

2565

积分

金牌会员

Rank: 6Rank: 6

积分
2565
QQ
 楼主| 发表于 2022-10-11 10:59:03 | 显示全部楼层
jishuang 发表于 2022-9-26 11:15
https://blog.csdn.net/qq_27114677/article/details/77848078

https://www.cnblogs.com/zhoading/p/15987 ...

还能看下么  正式系统现在导不出报表  没法用
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
35918
发表于 2022-10-11 19:01:03 | 显示全部楼层
https://localhost:8080/ReportServer/reportservice这个配置肯定不对呀,你浏览器中可以输入https://localhost:8080/直接访问吗?

配置可以访问的https的地址
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-4-27 11:19 , Processed in 0.104842 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表