Nginx virtual host based on host domain name
1. Copy the Nginx configuration file
[root@localhost ~]# cd /etc/nginx/conf.d/
[root@localhost conf.d]# cp default.conf default1.conf
2. Modify the configuration file default.conf
[root@localhost conf.d]# vim default.conf
server {
listen 80;
server_name www.host.com;
#charset koi8-r;
#access_log /var ...
Posted by Dilb on Fri, 13 Dec 2019 09:21:38 -0800
Theory+Practice: apache's Virtual web Host Configuration
@[toc]Common apache features, virtual hosts
One: Virtual Web Host
Run multiple Web sites on the same server, each of which does not occupy a real computer independently
1.1 Types of virtual hosts supported by httpd (three)
Type based on domain name
IP Address Based Virtual Host
Port-based virtual hostFor example:www.kgc.omwww.accp.comIP Same ...
Posted by mdgalib on Thu, 12 Dec 2019 19:16:14 -0800
Python 3 crawler requests + beautiful soup4 (BS4) tutorial
Soon after learning Python crawler, I couldn't wait to find a website to practice, New style pavilion : a novel website.
Precondition preparation
Install Python and necessary modules (requests, bs4), don't know requests and bs4 You can go to the official website and watch the course later
Reptile thinking
At the beginning of writing the white o ...
Posted by Jnerocorp on Sat, 07 Dec 2019 21:50:40 -0800
How to collect common front-end performance information
Front end performance indicators, mostly including TTFB, first screen, first interactive time, etc
There are a lot of related articles, so we won't talk about the details here. Please refer to the end of the article
In general, we need to know that the browser (New) provides us with the Performance API. With this property, we can get a ser ...
Posted by dleone on Wed, 04 Dec 2019 07:24:41 -0800
k8s using Kube router to build highly available and extensible ingress
brief introduction
Use Kube router to realize the function of inress of k8s cluster, which is highly available and easy to expand
Environmental description
This experiment is based on the k8s cluster which has been installed and configured. For k8s installation, please refer to other blog articles. lab4, as a router, forwards lab5's request
Exp ...
Posted by eirikol on Tue, 03 Dec 2019 05:27:35 -0800
Linux basic knowledge DNS server master-slave replication, sub domain authorization
DNS domain name system is a service of Internet. As a distributed database which maps domain name and IP address, it can make people access the Internet more easily. DNS uses TCP and UDP port 53
DNS server master-slave replication, subdomain authorizationMain server: 10.120.123.13Slave server: 10.120.123.250Sub server: 10.120.123.251 Master ...
Posted by Niccaman on Mon, 02 Dec 2019 15:39:45 -0800
Traifik configuration automatically applies for ssl free certificate
What is an SSL certificate?
Secure sockets layer (SSL) certificates (sometimes referred to as digital certificates) are used to establish an encrypted connection between a browser or user computer and a server or web site. SSL connections protect sensitive data (such as credit card information) exchanged during each access (called a session) f ...
Posted by 4rxsid on Thu, 28 Nov 2019 13:21:32 -0800
Nginx chapter reverse agent
About the configuration file and explanation of the reverse seven layer agent
Nginx official website: https://www.nginx.com/
Centos yum install nginx
yum install nginx -y
so, let's ask you a question, what? Why do we use Nginx to implement the seven layer agent? What is the seven layer agent?
1. Difference between nginx proxy and not
Tradition ...
Posted by br549 on Mon, 25 Nov 2019 01:25:49 -0800
django production environment deployment: nginx+SSL certificate start wss+https
Download certificate
It took me an hour here. I'm Tencent cloud's server. For the domain name purchased by Alibaba cloud, first apply for a free ssl Certificate in Tencent cloud. During this period, just follow the instructions. One step is to change the DNS in Alibaba cloud.
I don't need to talk about it in detail. After I ge ...
Posted by nightdesigns on Thu, 21 Nov 2019 11:29:33 -0800
Deploy a complete set of DNS detailed process within the enterprise
1) environmental description
1. A total of 7 hosts are required, and their roles are as follows:
A. 192.168.36.6(OS6): test
B. 192.168.36.7(OS7): localdns
C. 192.168.36.17(OS7): rootdns
D. 192.168.36.27(OS7): comdns
E. 192.168.36.37(OS7): master
F. 192.168.36.47(OS7): slave
G. 192.168.36.57(OS7): www
2. ...
Posted by amitshetye on Thu, 21 Nov 2019 10:31:06 -0800