current location:Home > Technical Articles > Operation and Maintenance > Nginx
- Direction:
- All web3.0 Backend Development Web Front-end Database Operation and Maintenance Development Tools PHP Framework Daily Programming WeChat Applet Common Problem Other Tech CMS Tutorial Java System Tutorial Computer Tutorials Hardware Tutorial Mobile Tutorial Software Tutorial Mobile Game Tutorial
- Classify:
-
- How to configure HTTPS secure communication between Nginx server and iOS
- Introduction In network communications, packet capture software can be used to analyze network requests and perform replay attacks. The solution to replay attacks is generally to use a changing parameter, such as the rsa-encrypted timestamp, but considering the network transmission Delay, timestamp needs to have a certain error tolerance, which still cannot fundamentally prevent replay attacks. If you want to better solve the problem of replay attacks, you should consider using https communication. The https protocol is a network protocol built from the ssl+http protocol that can perform encrypted transmission and identity authentication. It is more secure than the http protocol. For websites accessed with a browser, you need to apply for a certificate from the CA to ensure that https web pages can be browsed normally. Otherwise, you will be warned that it is an unsafe or uncertified website.
- Nginx 1002 2023-05-28 23:12:45
-
- How to configure status monitoring in nginx
- Nginx has a built-in status page, which needs to be opened by specifying the --with-http_stub_status_module parameter during compilation. In other words, this function is provided by the http_stub_status_module module and is not loaded by default. Configuration file example server{listen80;server_namewww.xxx.com;location/status/{stub_statuson;access_logoff;allow127.0.0.1;allow192.168.10.0/24;denyall;}} configuration description lo
- Nginx 1467 2023-05-28 23:06:31
-
- How to upgrade Nginx from http to https
- The difference between http and https is that on some websites, when http is opened, the page prompts that it is unsafe. For example, if you click on the following website [actually the same website], how can you get rid of this unsafe prompt? Let’s take a look at the final effect of upgrading from http to https: If you currently have a website, how do you upgrade it to https? Domain name: 511easy.com Once you have a domain name, you can apply for a free SSL certificate, as shown in the screenshot below, based on the certificates of each web server. If nginx is used here, then you need to configure the configuration of nginx.conf, which is probably the third one below. The first two are what I use to save. Compared with http, https is more secure, but not necessarily, use jm
- Nginx 1142 2023-05-28 22:52:57
-
- How to scroll nginx log file in docker
- Docker uses 1.dockerps to view running containers 2.dockerimages to view docker images 3.dockerrmid (container id) to delete containers (the container id can be viewed through dockerps, and the container must be stopped before it can be deleted) 3.1 Delete all containers dockerrm`dockerps-a-q ` 4.dockerstopid (container id) stops the container from running 5.dockerrmiid (image id) deletes the image 6.dockerpullubuntu:16.04 (image name: version number) downloads the image 7.dockerr
- Nginx 1077 2023-05-28 20:22:04
-
- How to install and configure nginx under Centos7
- Note: The basic directory path for software installation: /usr/local, so when downloading the software, switch to this directory and download and unzip it directly 1. Install the gccgcc-c++ dependency package yuminstall-ygccgcc-c++ 2. Download, compile and install the pcre library Switch to the usr/local directory and execute the command to download the installation package wget decompress the installation package tar-zxvfpcre-8.36.tar.gz compile and install cdpcre-8.36./configuremake&&makeinstall3. Download compile and install the ssl library download the installation package wget decompress the compressed package tar-zxvfopenssl
- Nginx 1615 2023-05-28 20:04:06
-
- How to configure nginx to access image paths and retrieve html static pages
- 1. In the experimental environment, first create the corresponding directory under a certain path. As shown in Figure 2 below. Put custom html or pictures in it. 3.nginx configuration userroot;worker_processes1;#error_loglogs/error.log;#error_loglogs/error.lognotice;#error_loglogs/error.loginfo;#pidlogs/nginx.pid;events{worker_connections1024;}http{includemime.types;default_typ
- Nginx 4421 2023-05-28 19:55:26
-
- How to configure the dynamic and static separation of Nginx and Apache or Tomcat
- 1. Static and dynamic separation configuration of nginx and apache: Put the following configuration into the corresponding server{} in the nginx configuration file. If you use other port numbers, just change it: #All dynamic pages of php are handled by apache location~\. (php)?${proxy_set_headerhost$host;proxy_set_headerx-real-ip$remote_addr;proxy_set_headerx-forwarded-for$proxy_add_x_forwarded_for;proxy_passhttp://12
- Nginx 863 2023-05-28 19:34:04
-
- How to use nginx lua to collect data in website statistics
- Webmasters and operators often use website data analysis tools. Google Analytics, Baidu Statistics, Tencent Analytics, etc. are widely used. If you want to collect statistics, you must first collect data. Let’s analyze the principles of data collection and build a data collection system. system. Data collection principle analysis To put it simply, the website statistical analysis tool needs to collect the user's behavior of browsing the target website (such as opening a certain web page, clicking a certain button, adding products to the shopping cart, etc.) and additional behavioral data (such as the behavior generated by an order). order amount, etc.). Early website statistics often collected only one user behavior: the opening of a page. Then the user's behavior on the page cannot be collected. This collection strategy can meet common analysis perspectives such as basic traffic analysis, source analysis, content analysis and visitor attributes.
- Nginx 941 2023-05-28 17:32:48
-
- How to configure nginx client to save cookies
- The problem lies in deploying a dotnetcore background service left by predecessors, carefully modifying the front-end code on the server, changing the ajax request address to localhost, and logging in and requesting data are normal. However, I changed the localhost to the IP address and found that the login was normal and the cookie was returned. However, when verifying the login status (sending a request to the background and verifying the cookie carried), an error was reported. The front end and back end of this program were not written by me. , asked the front-end development: This is correct, the cookie is indeed returned, but when requesting again, the request header does not carry the cookie. It was strange, and then I discovered: According to the prompt, the browser wanted to save the cookie, but Set-
- Nginx 1675 2023-05-28 17:25:25
-
- How to configure tomcat under nginx
- Location example server{listen80;server_namewww.xxx.com;location~*"\.(jpg|png|jepg|js|css|xml|bmp|swf|gif|html)$"{root/data/wwwroot/aminglinux /;access_logoff;expire7d;}location/{proxy_passhttp://127.0.0.1:8080/;proxy_set_headerHost$host;proxy_set_head
- Nginx 1322 2023-05-28 16:43:06
-
- Nginx load balancing configuration example analysis
- [Implementation function] 1. Configure three servers 2. Deploy the same service code on three servers respectively 3. Use nginx to achieve load balancing [Implementation idea] Our nginx load balancer will be deployed on an interactive server, configure For connections with the other two servers, all requests directly access the nginx service interface, and then the nginx load balancer will choose the actual calling server port. [Development and deployment environment] Development environment: windows7x64sp1 English version | visualstudio2017 deployment environment: Alibaba Cloud ecs instance windowsserver2012x64 | iis7.0 [required technology] asp.n
- Nginx 1314 2023-05-28 16:07:12
-
- How Docker uses nginx to build a tomcat cluster
- First create the tomcat folder. In order to facilitate the configuration of docker, I create it directly in the root directory. Step 1: Create the folder: Publish folder mkdir-p/docker/tomcat/webapp8081mkdir-p/docker/tomcat/webapp8082mkdir-p /docker/tomcat/webapp8083 Step 2: Create a tomcat container (the port can be changed according to your actual situation) dockerrun-d --nametomcat8081-p8081:8080-v/docker/tomcat/webapp8081:/usr
- Nginx 1279 2023-05-28 15:47:35
-
- How nginx forwards requests based on URL
- Proxy server: sockerserver listens to a certain port, connects to the specified server port according to the http message, and makes data requests - http proxy http request passes through the proxy server, and the proxy server only needs to be responsible for forwarding the corresponding http response body. -https proxy https request passes through the proxy server and will send a connect message to establish a tunnel with the proxy server. If the proxy server returns http200, the establishment is successful. Subsequent proxy servers only need to be responsible for forwarding data. In fact, the SSL/TLS handshake is still Happens on both the client and the real server. proxyservlet can access the server fa because of the 8089 port of the background project
- Nginx 2545 2023-05-28 14:40:06
-
- Analysis of Nginx installation examples in Linux centos7 environment
- 1. First go to the nginx official website to download the nginx installation package. After downloading, you will see a file similar to the following. Create the nginx-src directory and go to the nginx-src directory and run the following command: mkdirnginx-src&&cdnginx-src. Of course, you can also run it on linux. Run the following commands below to download the nginx installation package wgethttp://nginx.org/download/nginx-1.5.9.tar.gz2, and decompress the nginx-1.5.9.tar.gz file tar-zxvfnginx-1.5.9.tar. gz3, delete the installation package file command
- Nginx 934 2023-05-28 14:32:25
-
- How to deploy projects built by accessing vue-cli in nginx
- Projects built in history mode need to rely on background technology. The nginx reverse proxy is used here to deploy the project. The specific method is as follows: 1. Create the backend server object upstreammixVueServer{serverbaidu.com;#This is your own server domain name} 2. Create the access port and reverse proxy rule server{listen8082;server_namelocalhost;location/{rootE:/mix_vue/dist;# Locate the project directory #indexindex.htmlindex.htm;try_files$uri$uri//
- Nginx 1057 2023-05-28 13:04:06