备注 | 修改日期 | 修改人 | |
内容更新 | 2022-12-14 19:50:26[当前版本] | 系统管理员1 | |
内容更新 | 2022-12-14 14:51:28 | 系统管理员1 | |
内容更新 | 2022-12-13 19:41:31 | 系统管理员1 | |
内容更新 | 2022-12-06 09:53:28 | 系统管理员1 | |
location /{ proxy_pass http://192.168.31.248:8080/; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-Scheme https; proxy_set_header X-Forwarded-Host $http_host; proxy_set_header X-Forwarded-Port $server_port; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; }
或
location /wcp{ proxy_pass http://192.168.31.248:8080/wcp; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-Scheme https; proxy_set_header X-Forwarded-Host $http_host; proxy_set_header X-Forwarded-Port $server_port; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; }
1.拷贝com文件夹到WEB-INF/classes目录中
2.注册web.xml.txt中的filter到WEB-INF/web.xml中
3.nginx中配置参数传递
worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; client_max_body_size 20m; sendfile on; keepalive_timeout 65; server { listen 443 ssl; server_name 127.0.0.1; client_max_body_size 2000M; ssl_certificate D://JavaWorkspace//nginx-1.19.8//ssl//shidian.crt; ssl_certificate_key D://JavaWorkspace//nginx-1.19.8//ssl//shidian.key; ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m; ssl_ciphers HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on; location /wcp{ proxy_pass http://127.0.0.1:8080/wcp; #替换重定向时的地址 proxy_redirect http://127.0.0.1:8080/wcp https://127.0.0.1/wcp; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-Port $server_port; proxy_set_header X-Forwarded-Scheme $scheme; proxy_set_header X-Forwarded-Host $host; } } }