当前位置: 首页 > news >正文

阿里云怎样做公司网站wordpress菜单栏优化

阿里云怎样做公司网站,wordpress菜单栏优化,html网站代码,如何自建网页解决场景#xff1a;下载发票的版式文件#xff0c;第三方返回的是url链接地址#xff0c;但是服务是部署在内网环境#xff0c;无法访问互联网进行下载。此时需要进行走反向代理出去#xff0c;如果按照已有套路#xff0c;就是根据不同的访问前缀#xff0c;跳转不同的…解决场景下载发票的版式文件第三方返回的是url链接地址但是服务是部署在内网环境无法访问互联网进行下载。此时需要进行走反向代理出去如果按照已有套路就是根据不同的访问前缀跳转不同的location,我们有四十几个路径就需要配置40多个location 比较繁琐。此时可以使用nginx里的map 属性进行配置配置如下 nginx配置文件 #user nobody; worker_processes 6;#error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info;#pid logs/nginx.pid;events {worker_connections 65535 ; }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;sendfile on;#tcp_nopush on;#keepalive_timeout 0;keepalive_timeout 120s;#gzip on;# 增大 map_hash_bucket_size 的值可以根据实际情况调整大小map_hash_bucket_size 200; # 定义映射关系map $http_x_target_server $target_server {default ;pubapi.jcsk100.com https://pubapi.jcsk100.com;rocgw.jcsk100.com https://rocgw.jcsk100.com/external/;taxsapivip.jcsk100.com https://taxsapivip.jcsk100.com/v1/api/s;taxsapi.holytax.com https://taxsapi.holytax.com/v1/api/s;dppt.shanghai.chinatax.gov.cn https://dppt.shanghai.chinatax.gov.cn:8443;dppt.guangdong.chinatax.gov.cn https://dppt.guangdong.chinatax.gov.cn:8443;dppt.xiamen.chinatax.gov.cn https://dppt.xiamen.chinatax.gov.cn:8443;dppt.tianjin.chinatax.gov.cn https://dppt.tianjin.chinatax.gov.cn:8443;dppt.chongqing.chinatax.gov.cn https://dppt.chongqing.chinatax.gov.cn:8443;dppt.neimenggu.chinatax.gov.cn https://dppt.neimenggu.chinatax.gov.cn:8443;dppt.dalian.chinatax.gov.cn https://dppt.dalian.chinatax.gov.cn:8443;dppt.qingdao.chinatax.gov.cn https://dppt.qingdao.chinatax.gov.cn:8443;dppt.shaanxi.chinatax.gov.cn https://dppt.shaanxi.chinatax.gov.cn:8443;dppt.sichuan.chinatax.gov.cn https://dppt.sichuan.chinatax.gov.cn:8443;dppt.henan.chinatax.gov.cn https://dppt.henan.chinatax.gov.cn:8443;dppt.fujian.chinatax.gov.cn https://dppt.fujian.chinatax.gov.cn:8443;dppt.jilin.chinatax.gov.cn https://dppt.jilin.chinatax.gov.cn:8443;dppt.yunnan.chinatax.gov.cn https://dppt.yunnan.chinatax.gov.cn:8443;dppt.ningbo.chinatax.gov.cn https://dppt.ningbo.chinatax.gov.cn:8443;dppt.shenzhen.chinatax.gov.cn https://dppt.shenzhen.chinatax.gov.cn:8443;dppt.gansu.chinatax.gov.cn https://dppt.gansu.chinatax.gov.cn:8443;dppt.shanxi.chinatax.gov.cn https://dppt.shanxi.chinatax.gov.cn:8443;dppt.zhejiang.chinatax.gov.cn https://dppt.zhejiang.chinatax.gov.cn:8443;dppt.hainan.chinatax.gov.cn https://dppt.hainan.chinatax.gov.cn:8443;dppt.liaoning.chinatax.gov.cn https://dppt.liaoning.chinatax.gov.cn:8443;dppt.jiangsu.chinatax.gov.cn https://dppt.jiangsu.chinatax.gov.cn:8443;dppt.jiangxi.chinatax.gov.cn https://dppt.jiangxi.chinatax.gov.cn:8443;dppt.guangxi.chinatax.gov.cn https://dppt.guangxi.chinatax.gov.cn:8443;dppt.hebei.chinatax.gov.cn https://dppt.hebei.chinatax.gov.cn:8443;dppt.heilongjiang.chinatax.gov.cn https://dppt.heilongjiang.chinatax.gov.cn:8443;dppt.xinjiang.chinatax.gov.cn https://dppt.xinjiang.chinatax.gov.cn:8443;dppt.hubei.chinatax.gov.cn https://dppt.hubei.chinatax.gov.cn:8443;dppt.beijing.chinatax.gov.cn https://dppt.beijing.chinatax.gov.cn:8443;dppt.anhui.chinatax.gov.cn https://dppt.anhui.chinatax.gov.cn:8443;dppt.shandong.chinatax.gov.cn https://dppt.shandong.chinatax.gov.cn:8443;dppt.hunan.chinatax.gov.cn https://dppt.hunan.chinatax.gov.cn:8443;dppt.guizhou.chinatax.gov.cn https://dppt.guizhou.chinatax.gov.cn:8443;dppt.xizang.chinatax.gov.cn https://dppt.xizang.chinatax.gov.cn:8443;dppt.ningxia.chinatax.gov.cn https://dppt.ningxia.chinatax.gov.cn:8443;dppt.qinghai.chinatax.gov.cn https://dppt.qinghai.chinatax.gov.cn:8443;}#代理地址server {listen 8444;location / {# 响应头打印 $http_x_target_server 和 $target_server 的值add_header X-Target-Server $http_x_target_server;add_header Target-Server $target_server;# 默认不传给北京的地址if ($target_server ) {set $target_server https://dppt.beijing.chinatax.gov.cn:8443;}proxy_pass $target_server;proxy_cache off;proxy_redirect off;proxy_connect_timeout 5m;proxy_send_timeout 5m;proxy_read_timeout 5m;proxy_buffer_size 10m;proxy_buffers 256 10m;proxy_busy_buffers_size 10m;proxy_temp_file_write_size 10m;add_header Cache-Control no-cache;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;}}# 添加 resolver 指令使用 Google 的公共 DNS 服务器根据项目上的情况进行配置使用$target_server必须配置写死地址则不需要resolver 8.8.8.8; } Java代码 // header 传入nginx里的key即可 就会指定到对应的目标server里URL url new URL(urlString);URLConnection connection url.openConnection();connection.setRequestProperty(X-Target-Server, header);验证方式 可以在响应头中查看具体访问的代理地址。
http://www.w-s-a.com/news/689934/

相关文章:

  • 企业电子商务网站设计的原则深圳的网站建设公司怎么样
  • 个人网站趋向wordpress图片搬家
  • 做空压机网站的公司有哪些wordpress 外部链接
  • 网站建设管理成本估计小红书推广平台
  • 一级a做爰片免费观看网站焦作建设企业网站公司
  • 欧阳网站建设2022华为云营销季
  • 快速学做网站高水平的大连网站建设
  • 专业做房地产网站建设wordpress侧面小工具
  • 旅游网站开发的重要性wordpress添加广告插件
  • 关于网站建设管理工作的报告婚纱网站php
  • 东莞市建设培训中心网站那个网站可以看高速的建设情况
  • 网站开发工具安卓版专业小程序商城开发
  • 网站不备案影响收录吗深圳住房网站app
  • 交网站建设域名计入什么科目开发平台教程
  • 个人网站定制北京快速建站模板
  • 河南海华工程建设监理公司网站高端论坛网站建设
  • 网站建设网络推广方案图片编辑器免费
  • 如何用dw做网站设计设计头条
  • 网站建设基础及流程北京商场购物中心排名
  • 青州市城乡建设局网站自建网站步骤
  • wordpress文章延迟加载优化设计答案四年级上册语文
  • 做网站源码要给客户嘛怎么在运行打开wordpress
  • 北海住房和城乡建设局网站wordpress标题去掉私密
  • 织梦网站安装视频做网站都有那些步骤
  • 网站空间大小选择沈阳微信网站制作
  • 网站分享对联广告网站结构的类型
  • 三维家是在网站上做还是在app上北京网站建设 专业10年
  • 模拟网站建设网站建设认准猪八戒网
  • godaddy网站建设教程微信手机网站搭建
  • 网站建设 商城淄博网站制作哪家好