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 (PaymentInterceptor.java:44) preHandle() - requestStringForLog: { "request.getRequestURL ...

Posted on Thu, 03 Jan 2019 20:18:08 -0500 by marms

tomcat configures ssl to access chrome prompts ERR_SSL_VERSION_OR_CIPHER_MISMATCH

After matching tomcat ssl today, it was found that the page could not be accessed. chrome prompts the following: Access error. png   The problem is that the same configuration on other servers is completely okay. Baidu has not found a solution for this problem, and has little understanding of the principle of tomcat's ssl configuration. La ...

Posted on Wed, 02 Jan 2019 13:48:09 -0500 by CrazeD

Use and Analysis of [Curator] Shared Reentrant Read Write Lock

Shared Reentrant Read Write Lock A reentrant distributed read-write lock. The read-write lock consists of two locks, one controlling the read-only operation and the other controlling the write operation. Read locks allow multiple read operations at the same time, but write operations are not allowed. Write locks are exclusive. 1. Key API s org. ...

Posted on Tue, 01 Jan 2019 11:45:09 -0500 by NYSiRacer

LAMP, MySQL, MariaDB, MySQL installation, MariaDB installation, Apache installation

LAMP introduction LAMP is linux + Apache (httpd) + MySQL + PHP pache (httpd) + MySQL + PHP can be on one machine or separated. But Apache (httpd) and PHP are all together. How does httpd, PHP and MySQL work? User Browser - - > Apache - - > PHP - - > MySQL Apache reads are divided into dynamic files and static files. Dynamic file ...

Posted on Mon, 24 Dec 2018 20:33:06 -0500 by ewillms

Apache enables mod_expires&mod_headers for static caching

I. Browser Caching Principle Delete the "" in front of the line, save the "httpd.conf" configuration file, and restart Apache to make the update take effect. Of course, if we rent a virtual host, the "httpd.conf" profile is not accessible to most of our users, but a "htaccess" profile is written in the ...

Posted on Sun, 23 Dec 2018 20:57:06 -0500 by iBlizz

New demo for itext generation of PDF (including simple extraction of txt file content and conversion of xml content to pdf)

1. The iText version used is version 7.0.2. The configuration of maven is as follows: <dependencies> <!-- always needed --> <dependency> <groupId>com.itextpdf</groupId> <artifactId>kernel</artifactId> <version>7.0.3</version> </dependency> &lt ...

Posted on Sun, 23 Dec 2018 01:45:06 -0500 by Pha

java.net.SocketException: Unexpected end of file from server exception resolution

The company needs a similar version of the web application. When the project is deployed, the project files are the same (but the configuration is different). When deployed to a new place, such as tomcat server, the following errors are reported: java.net.SocketException: Unexpected end of file from server at sun.net.www.http. ...

Posted on Sun, 23 Dec 2018 01:09:05 -0500 by noeledoran

session synchronous replication by nginx+tomcat+memcached (msm)

This paper emphasizes how to realize session sharing on linux server, and software installation is no longer discussed. First of all, we need to understand the working mechanism of cookies and sessions very well. If we don't understand the principle of cookies and sessions, even if the configuration is successful, ...

Posted on Sat, 22 Dec 2018 21:00:10 -0500 by peeter_talvistu

Installation and configuration of httpd 2.x, mod_auth_mysql module and support for aes encryption

Preface A previous blog post Apache httpd version 2.2 and part of the experiment of version 2.4 In experiment 2, it is mentioned that mod_auth_mysql.so module is used for protocol authentication. This paper will describe the installation and configuration of this module, as well as the support for aes encryption characteristics.Installatio ...

Posted on Fri, 21 Dec 2018 14:18:05 -0500 by Dasndan

MyBatis Learning Notes of J2EE Series (10) -- Configuring sql mappers with annotations

In the previous project, we used sql mappers configurated by xml files (such as Student Mapper. xml files, which is to configure sql mappers related to Student), and of course we can configure sql mappers by annotations (Hibernate also uses annotations to configure). xml file configuration is recommended for future projects. It is convenient t ...

Posted on Thu, 20 Dec 2018 21:15:05 -0500 by mndwn