Nginx multisite configuration
1, Create site profile
1. Create the conf.d folder and configuration file in the nginx conf directory, assuming the site is www.a.com
$ pwd
/usr/local/nginx/conf
$ sudo mkdir conf.d
$ sudo vim conf.d/www.a.com.conf #New site profile
2. Write the following content into the www.a.com.conf file, which can be mod ...
Posted by frontlines on Mon, 04 May 2020 13:33:59 -0700
Nginx optimizes static file access
brief introduction
The static files needed in web development are: CSS, JS, font and picture, which can be accessed through web framework, but the efficiency is not optimal.
Nginx is much more efficient than Web framework in processing static files, because it can use gzip compression protocol to reduce the volume of static files, speed up th ...
Posted by cent on Mon, 04 May 2020 04:54:50 -0700
Three ways to configure Nginx virtual host (3) (based on domain name)
3. Nginx domain name based virtual host configuration
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.
3.1 suppose the server has an IP address of 192.168.2.155
[root@localhost ~]# ifconfig ens33:5 192.168.2.155/24 up
[root@localh ...
Posted by ginoitalo on Sun, 03 May 2020 22:23:41 -0700
Linux Phase 9: Interim Architecture LNMP Chapter
IX. Interim Framework LNMP Chapter
(1) Description of the LNMP architecture
1) Concatenate front-end web services with back-end storage services
2) Mainly implements handling PHP program dynamic requests
(2) How the LNMP architecture works
L Linux N nginx M mysql P php
(3) LNMP Architecture Deployment
1) Install LNMP related software
1. ...
Posted by Jarod on Sun, 03 May 2020 22:12:49 -0700
Web Api service registration and discovery based on Zookeeper
Installation and differences
Please refer to my last article for Zookeeper installation http://www.cnblogs.com/woxpp/p/7700368.html
Service provision and consumption based on Nginx
Service registration and discovery based on zookeeper
The load balance of zk can be adjusted. Nginx is only able to adjust the weight, and other things t ...
Posted by Tarsonis21 on Sun, 03 May 2020 18:18:58 -0700
LNMP Architecture - Nginx user authentication
A virtual host in nginx for a profile
Create a new virtual host profile
[root@dl-001 default]# vim /usr/local/nginx/conf/vhost/test.com.conf / / create a virtual host
server
{
listen 80;
server_name test.com;
index index.html index.htm index.php;
root /data/wwwroot/test.com;
location /
{
...
Posted by Carlo Gambino on Sun, 03 May 2020 10:04:17 -0700
Analysis and configuration verification of TLS encrypted communication for Docker security
The basic concept of TLS
TLS (Transport Layer Security), TLS is a protocol built on the TCP protocol of the transmission layer, serving the application Layer. Its predecessor is SSL (Secure Socket Layer), which realizes the function of encrypting the message of the application layer and then delivering it to TCP for transmission.
TLS protocol ...
Posted by guoxin on Sun, 03 May 2020 09:09:02 -0700
Linux Phase 11: Ke keepalived High Availability Cluster
11. Ke keepalived Highly Available Clusters Chapter
(1) Description of keepalived service concept
What can keepalived do?
The Keepalived software was originally designed for LVS load balancing software.
Used to manage and monitor the status of each service node in the LVS cluster system, and later added VRRP capabilities that enable high availa ...
Posted by EvanMartin on Sun, 03 May 2020 07:46:07 -0700
Alibaba cloud CentOS 7.4 configures Nginx, PHP and Mariadb
CentOS 7.4 basic environment configuration
Add third party source yum
There are two common third-party sources: EPEL and IUS. You can see the latest installation methods at https://ius.io/GettingStarted/
Automatic installation
curl -L https://setup.ius.io | sh
Manual installation (if automatic installation is used, this will be omitted) ...
Posted by n1tr0b on Sun, 03 May 2020 02:57:00 -0700
Eight of three phases of Linux: Architecture nginx practical application
8, Architecture nginx practical application
(1) Introduction of web service software
There are three kinds of software commonly used to provide static Web services:
1 Apache:
This is the mainstream of small and medium-sized Web services, the big brother of web servers.
2 Nginx:
The mainstream of Web services for large-scale websites, onc ...
Posted by cdinca on Sat, 02 May 2020 14:52:31 -0700