Big Data Tutorial (2.13): Keeping alived + nginx (multi-master and multi-live) High Availability Cluster Building Tutorial
In the previous chapter, the blogger introduced the architecture of the mainalived + nginx (backup) high-availability system for large-scale Internet projects. I believe you should read the blogger's article and have a certain understanding of the mainalived / nginx technology. In this section, the blogger will share the related technology and ...
Posted by dk44 on Thu, 16 May 2019 02:33:09 -0700
Nginx SSL+tomcat cluster, fetch the correct protocol for https
Nginx SSL+tomcat cluster, request.getScheme() fetches the correct protocol for https
Recently, in a project, Nginx +tomcat cluster is used in the architecture, and SSL,tomcat no SSL are configured under nginx. The project uses https protocol.
However, it is clearly an https url request that finds the log s.
0428 15:55:55 INFO (Pa ...
Posted by BoxingKing on Thu, 16 May 2019 00:45:56 -0700
Deep into Nginx Configuration
Common configuration items
In our work, we deal with Nginx more through its configuration files. It is necessary to understand the respective roles of these configuration items.
First, the content of nginx.conf is usually as follows:
...
... #Core touch block
events { #Event module
...
}
http { # http ...
Posted by Tuck on Wed, 15 May 2019 13:00:33 -0700
Use docker to build PHP development environment
1. Install docker and docker-compose
Installation of 1.1 docker
The Linux distribution used for this installation is Ubuntu 18.04, and we can refer to docker's Official Documents Install, but there are steps that require minor modifications.
First, delete the old docker version:
$ sudo apt-get remove docker docker-engine docker.io containerd ru ...
Posted by Jarod on Wed, 15 May 2019 07:18:09 -0700
Using Nginx Server to Realize Reverse Proxy, Load Balancing and Virtual Host
I believe many people have heard of nginx, a small thing slowly swallowing apache and IIS share. So what exactly does it do? Maybe many people don't necessarily understand.
When it comes to reverse proxy, many people may have heard about it, but it is not clear what reverse proxy is. Excerpt from a description on Baidu Encyclo ...
Posted by johne281 on Tue, 14 May 2019 22:33:25 -0700
Openresty reverse proxy returns non-200 for retry to custom upstream
By using error_page instruction, the status codes of 404, 302 etc. returned by the reverse proxy are processed twice for sub-requests.
Client - [1] - > nginx proxy < - [2] - > Site A (return 404, 302)
|[3]
V
Site B (return 200)
For example, as a CDN service, ...
Posted by guido88 on Tue, 14 May 2019 18:33:26 -0700
How to Protect Exposed Kubernetes Services
Sometimes we need to expose some services without any security authentication mechanism in Kubernetes, such as Kibana without xpack, Jenkins service without login authentication, etc. We also want to access through domain name, which is more convenient than domain name. More importantly, for services in Kubernetes, it is too convenient to expos ...
Posted by cresler on Sat, 11 May 2019 17:13:34 -0700
SpringBoot integration FastDFS+Nginx integration Token-based anti-theft chain
Why use SpringBoot?
SpringBoot is a new framework provided by the Pivotal team designed to simplify the initial build and development of new Spring applications.The framework is configured in a specific way so that developers no longer need to define a template configuration.In this way, Spring Boot is committed to becoming a leader in the bur ...
Posted by scorpioy on Fri, 10 May 2019 19:46:11 -0700
Deployment of java projects
Open source component deployment
jdk1.8.0_141 and above
tomcat 7.0.45 and above below 9
nginx 1.12.1
mongoDb 3.4.6
mysql 5.6.37
elasticsearch 5.4.2
I. Installation of Software
jdk1.8.0_141
1.jdk compression package put in / work to decompress tar-zxvf jdk-8u141-linux-x64.tar.gz
2. Setting environment variables
Vim/etc/prof ...
Posted by coolcat on Fri, 10 May 2019 03:48:38 -0700
API Gateway [gateway] 3
Recently, in the company API gateway rewrite, the company uses serverMesh for service registration, invocation, here combined with the previous study of API Gateway Services for a simple summary and analysis. Since a lot of nginx-related stuff has been used, here is a record:
Using openresty in nginx
Add nginx module
Edit the conf configurat ...
Posted by toma42 on Fri, 10 May 2019 00:48:40 -0700