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 implement Nginx reverse proxy forwarding tomcat
- Let’s talk about the forward proxy first. For example, if you want to access YouTube, but you cannot access it directly, you can only find a circumvention software first, and you can access YouTube through the circumvention software. The circumvention software is called a forward proxy. The so-called reverse proxy means that the user wants to access YouTube, but YouTube quietly hands over the request to bilibili, then bilibili is a reverse proxy. In the current tutorial, it refers to accessing nginx, but nginx hands the request to tomcat. Not much to say, you can access the corresponding interface up to ports 80 and 8080. Of course, you can also configure nginx.confvi in the conf folder under Nginx for the port you set.
- Nginx 1167 2023-05-17 12:40:25
-
- How to enable Nginx HTTP/2 on Linux
- HTTP/2 mainly appeared to solve the problem of poor performance of HTTP 1.1. In order to improve HTTP performance, Google created SPDY, which was the predecessor of HTTP/2 and later developed into the HTTP/2 standard. Prerequisites In order to follow this tutorial to enable the HTTP/2 protocol on the server, you need to install Nginx first. And make sure it functions properly and is configured without errors. You can check it using the following command: sudonginx -t In addition, you need to have root access to the server, or at least a non-root system user with sudo permissions so that the permissions will not appear when you modify the Nginx configuration file ask
- Nginx 1483 2023-05-17 12:34:56
-
- How to configure Nginx reverse proxy on CentOS
- 1. Description of reverse proxy and demonstration environment 1. Reverse proxy In a computer network, a reverse proxy is a proxy server that retrieves resources from one or more servers on behalf of the client. These resources are then returned to the client as if they originated from the web server itself. In contrast to a forward proxy, which is an intermediary through which clients associated with it contact any server, a reverse proxy is an intermediary through which any client contacts its associated server. For information about forward proxy, please refer to: Configuring Nginx forward proxy based on CentOS7 2. Several servers in this demonstration 2. General reverse proxy configuration 1. Backend server configuration (Apache) Backend Apache server host name and IP#hostnamecentos7
- Nginx 1942 2023-05-17 12:34:17
-
- How to proxy multiple servers with nginx
- 首先修改配置文件:#usernobody;worker_processes1;#error_loglogs/error.log;#error_loglogs/error.lognotice;#error_loglogs/error.loginfo;#pidlogs/nginx.pid;events{worker_connections1024;}http{includemime.types;default_typeapplication/octet-stream;#log_formatmain&
- Nginx 4098 2023-05-17 12:19:15
-
- How Nginx limits http resource requests
- Prerequisite: nginx needs to have the ngx_http_limit_conn_module and ngx_http_limit_req_module modules. You can use the command 2>&1nginx-v|tr'''\n'|greplimit to check whether there are corresponding modules. If not, please recompile and install these two modules. The test version is: nginx version is 1.15 + limit number of links 1. Use the limit_conn_zone directive to define the key and set the parameters of the shared memory area (the worker process will use this area to share the calculation of the key value
- Nginx 1025 2023-05-17 12:16:06
-
- How to configure nginx to enable phpinfo mode function under linux or windows
- Copy the code as follows: location~\.php(.*)${fastcgi_passunix:/tmp/php-cgi.sock;fastcgi_indexindex.php;fastcgi_split_path_info^(.+\.php)(.*)$;fastcgi_paramscript_filename$document_root$ fastcgi_script_name;fastcgi_parampath_info$fastcgi_path_info;fastcgi_parampath_tr
- Nginx 1256 2023-05-17 11:31:23
-
- How to install Nginx1.16.0 under linux
- Install the necessary dependent plug-in yuminstall-ygccgcc-c++pcre\pcre-develzlibzlib-developensslopenssl-develwget to create a folder and switch to mkdir/customer&&cd/customer to download the installation package (Similarly, if you want to install other versions, you can go to the official website link below and select Copy and replace the links of other versions) wget https://nginx.org/download/nginx-1.16.0.tar.gz Unzip and install tarzxvfnginx-1.16.0.ta
- Nginx 1294 2023-05-17 11:25:06
-
- How to disable access to .php files in Nginx
- Using the location directive In the Nginx configuration file, you can use the location directive to restrict access to a certain directory or file. By adding the following code to the location directive, you can disable access to the .php file: location~\.php${denyall;} In the above code, \ represents an escape character, . represents any character, and $ represents the end. So the meaning of this code is to match all files ending with .php with a regular expression and disable access to them. It should be noted that this method is only suitable for prohibiting access to PHP files and is invalid for other types of files. Using the if directive In addition to using the location directive, we can also use the if directive to disable
- Nginx 1901 2023-05-17 11:16:39
-
- How nginx implements load balancing of multiple geoserver services
- Overview In order to improve the access speed of the service, reduce the pressure on the geoserver service, and avoid problems with service nodes that affect the stability of service access, we usually solve the problem by deploying multiple geoservers. However, after deploying multiple geoservers, we need a A unified interface is provided for use, and nginx can meet such needs very well. This article talks about how to achieve load balancing of multiple geoserver services through nginx. Implementation effect realization 1. Multi-geoserver deployment In order to keep the geoserver service consistent, we first configure a geoserver service. After configuring it, copy the deployed Tomcat and clone multiple ones.
- Nginx 1421 2023-05-17 11:04:05
-
- How to install and configure Nginx under Ubuntu
- 1. Introduction to nginx nginx is a very lightweight http server. nginx, which is pronounced as "enginex", is a high-performance http and reverse proxy server, and is also an imap/pop3/smtp proxy server. 2. Support for PHP. Currently, there are three types of support for PHP by various web servers: (1) Through the built-in modules of the web server, such as apache's mod_php5, and similar apache's built-in mod_perl can support perl. (2) Implemented through cgi, which is just like the previous cgi of perl. The disadvantage of this method is poor performance, because every time the server encounters these scripts
- Nginx 1204 2023-05-17 11:01:34
-
- What are the characteristics of LVS, Nginx and HAProxy load balancers?
- LVS features: 1. Strong load resistance, using IP load balancing technology, only for distribution, so LVS itself does not generate much traffic; 2. Good stability and reliability, and has a perfect hot backup plan; (such as: LVS +keepalived) 3. It has a wide range of applications and can load balance all applications; 4. It does not support regular processing and cannot separate dynamic and static. Four commonly used algorithms: 1.rr: round-robin, allocated to back-end servers in turn; 2.wrr: weighted round-robin, allocated according to the load of the back-end server; 3.lc: minimum connection, allocated to the server with the fewest established connections Above; 4.wlc: connection with the smallest weight, allocated according to the processing capacity of the back-end server. You can use ipvsadm–p (pe
- Nginx 780 2023-05-17 10:40:11
-
- How to configure the tomcat cluster under Nginx reverse proxy in Linux
- nginx has features such as reverse proxy (note the difference between forward proxy and forward proxy) and load balancing. This time nginx is installed on the linux machine 192.168.1.108. To install nginx, you must first install the openssl library, gcc, pcre, zlib library, etc. Tomcat is installed on two machines, 192.168.1.168 and 192.168.1.178. The client accesses the project content deployed by tomcat in 192.168.1.168 and 192.168.1.178 by accessing the 192.168.1.108 reverse proxy. 1. Install nginx under linux (machine 192.168.1.108) and install ope
- Nginx 1675 2023-05-17 10:31:05
-
- How to use nginx proxy module
- nginx proxy module description: There are many instructions in the proxy module. I will only explain the important proxy_pass here. If you want to know more proxy instructions, please refer to the official Chinese documentation. This module can forward requests to other servers. http/1.0 cannot use keepalives (the backend server will create and delete connections for each request). nginx sends http/1.1 for the browser and http/1.0 for the backend server so the browser can handle the keepalive for the browser. For example: location/{proxy_passhttp://localhost:8000;proxy_set_headerx-rea
- Nginx 1201 2023-05-17 10:01:05
-
- How does Python obtain the Nginx log corresponding to the task request in real time?
- During the requirements testing process of the requirement description project, you need to send some use case requests to the Nginx server, and then check the corresponding Nginx logs to determine whether there is characteristic content to determine whether the task is successfully executed. In order to improve efficiency, this process needs to be automated. Practice environment Python3.6.5 code design and implementation #!/usr/bin/envpython#-*-coding:utf-8-*-"""@CreateTime:2021/06/269:05@Author:shouke"""importtimeimportthrea
- Nginx 810 2023-05-17 09:46:05
-
- TOMCAT cluster instance analysis under NGINX reverse proxy in LINUX
- nginx has features such as reverse proxy (note the difference between forward proxy and forward proxy) and load balancing. This time nginx is installed on the linux machine 192.168.1.108. To install nginx, you must first install the openssl library, gcc, pcre, zlib library, etc. Tomcat is installed on two machines, 192.168.1.168 and 192.168.1.178. The client accesses the project content deployed by tomcat in 192.168.1.168 and 192.168.1.178 by accessing the 192.168.1.108 reverse proxy. 1. Install nginx under linux (machine 192.168.1.108) and install ope
- Nginx 897 2023-05-17 09:40:47