background All company websites need to support the HTTPS protocol. After the SSL certificate is configured on Alibaba Cloud Load Balancing, HTTPS access to Nexus fails. Website access path: The domain name is resolved to Alibaba Cloud's load balancing, the load balancing is configured to force port 80 to port 443, the 443 port is configured with an SSL certificate and forwarded to the intranet nginx, and the intranet nginx then proxies the Nexus service. solve The browser HTTPS access Nexus Console error message: The error message roughly means: HTTP requests are not allowed on pages accessed via HTTPS. Solution: Add "proxy_set_header X-Forwarded-Proto https;" to the nginx configuration file so that nginx uses the HTTPS protocol when forwarding. Nexus configuration content in nginx.conf: location ^~ /nexus { proxy_pass http://xxxx:8080/nexus; sendfile off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto https; # Use https protocol when forwarding proxy_max_temp_file_size 0; # This is the maximum upload size client_max_body_size 20m; client_body_buffer_size 128k; proxy_connect_timeout 90; proxy_send_timeout 90; proxy_read_timeout 90; proxy_temp_file_write_size 64k; # Required for new HTTP-based CLI proxy_http_version 1.1; proxy_request_buffering off; proxy_buffering off; # Required for HTTP-based CLI to work over SSL } The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: MySQL cross-table query and cross-table update
This article introduces how to install the system...
1. Introduction When writing animation effects fo...
First look at the effect: When the mouse moves ov...
This tutorial shares the installation of mysql in...
According to the coefficient of pi and the radius...
1: Docker private warehouse installation 1. Downl...
The project was tested these days, and the tester...
The property of centering text in CSS is very simp...
As a front-end monkey, whether it is during an in...
This article shares the specific code of js to re...
<br />In one year of blogging, I have person...
Table of contents 1. Import files using script ta...
Students who use Ansible know that Ansible only s...
Record some of the processes of using node-media-...
Error: Connection to blog0@localhost failed. [080...