Nginx reverse agent + tomcat (nginx forwarding rules and load balancing)

Sometimes I want to realize reverse proxy through nginx, and map to different tomcat servers according to different URLs, which has achieved the purpose of hanging multiple websites and applications in one server. 1) The simplest is to modif ...

Posted by grigori on Fri, 05 Jun 2020 22:25:27 -0700

The interaction demo between ajax and the background

This demo mainly demonstrates the simple interaction between ajax and tomcat server! Idea: enter the user name in the input box. If the user name is blank, "please enter the user name"; if the user name already exists, the picture of "wrong number" will be displayed; if there is no same user name ...

Posted by jpadie on Fri, 29 May 2020 09:21:31 -0700

Tomcat CAS (single sign on) version 5.2x configuration database access - yellow Tong

The 5.2 version of CAS single sign on is really a big change. I came up with it after reading a lot of data. The general steps of configuration and the steps of configuring CAS and database are as follows: 1. Copying jar package, 2. Configuring application.properties Database configuration access, 3. Establish database data Preparation be ...

Posted by alivec on Fri, 22 May 2020 09:13:14 -0700

Deploy multiple projects in Tomcat, and configure the process of secondary domain name through Nginx reverse agent

Purchase domain name. Example: example.com Set multiple secondary domain names. As shown in the figure:   To configure the tomcat file: Modify the server.xml File: The following configuration configures three containers with three different ports. Please note three points: ① port number: Connector port; ② container name: portservice ...

Posted by kenchucky on Sun, 17 May 2020 08:11:31 -0700

Jenkins+maven+gitlab+Tomcat auto deployment version update and rollback

Implementation effect of this blog: combined with maven+gitlab, you can use Jenkins to implement version iterative update and version rollback operations for tomcat servers in different environments (test and online environments). After deployment, you only need to click a few times. 1, Environmental preparation system IP host name Running s ...

Posted by John Rowe on Tue, 05 May 2020 19:45:51 -0700

Docker virtualization management: 30 minutes to learn how to use Docker

There are too many official introductions about Docker on the Internet that I won't post. As a practical experience, Docker can greatly simplify the process of setting up environment and deploying services, greatly reduce the time cost of deployment, and free your hands. This article will not go into the Docker underlying architecture and how ...

Posted by my8by10 on Tue, 05 May 2020 08:36:27 -0700

Tomcat virtual host configuration based on domain name

Using domain name based virtual host configuration is a popular way. You can configure multiple domain names on the same IP and access them through port 80. 1, Suppose the server has an IP address of 192.168.2.170 [root@localhost ~]# ifconfig ens33:5 192.168.2.170/24 up [root@localhost ~]# ifconfig ens33:5: flags=4163 ...

Posted by karlovac on Tue, 05 May 2020 01:55:34 -0700

A note on the problem of non aware updating program of nginx+tomcat cluster users

Before, nginx+tomcat cluster configuration was a simple polling mechanism upstream servers{ #server 172.25.67.29:9091 weight=1 max_fails=1 fail_timeout=50; server 172.25.67.29:9091; server 172.25.67.27:9091; server 172.25.67.27:8380; } As shown above. In this way, it's OK to restart one of the t ...

Posted by w.geoghegan on Mon, 04 May 2020 19:49:02 -0700

Several ways for spring boot to modify the default port number

Modify application.properties In the first way, we just need to add a sentence like this in application.properties: server.port=8004. Why can I modify the default port of spring boot in this way? Because there is such a class in SpringBoot: ServerProperties. Let's take a look at this class in general: @ConfigurationProperties(prefix = "serv ...

Posted by paperthinT on Mon, 04 May 2020 13:25:32 -0700

Cookie of Java Web session Technology

Conversational Technology Session: multiple requests and responses in one session One session: the browser sends a request to the server for the first time, and the session is established until one party disconnects Function: share data among multiple requests within the scope of one session Method: Client session Technology: Cookie Sessio ...

Posted by nakkaya on Sun, 03 May 2020 20:03:23 -0700