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:
-
- What can nginx be used for?
- The matching rule of location = indicates exact matching. A hit will only occur if the requested url path is exactly equal to the following string. ^~ means that if the character after the symbol is the best match, this rule will be used and no subsequent search will be performed. ~ indicates that the rule is defined using regular expressions and is case-sensitive. ~* indicates that the rule is defined using regular expressions and is not case-sensitive. It should be noted that nginx’s matching priority is based on the above order, and it should be noted that once a certain match is hit, it will exit directly and no further matching will be performed. The remaining ordinary matches will be prioritized according to the longest matching length. Matching means whoever matches more will be used. server{server_namewebsite.
- Nginx 1058 2023-05-16 20:20:38
-
- How to install nginx under Linux
- Installation dependencies yuminstallgccyuminstallpcre-develyuminstallzlibzlib-develyuminstallopensslopenssl-devel When installing these 4 dependencies, there will be some questions. Enter y to download the nginx tar package //Enter the /usr/local directory cd/usr/local//Create a file Fold nginxmkdirnginx//Enter the nginx folder cdnginx//Download the tar package wgethttp://nginx.org/download/nginx-1.13.7.
- Nginx 4213 2023-05-16 19:48:07
-
- How to close error_log log in nginx
- Configuration parameter format: error_log/path/to/loglevel; Nginx error log level. Common error log levels are debug|info|notice|warn|error|crit|alert|emerg. The higher the level, the less information is recorded. If it is not defined, The default level is error. It can be configured in the main, http, server, and location sections. If two error_logs are defined in the configuration file, they will conflict in the same configuration section, so only one error_log is allowed to be configured in the same section. However, it is okay to appear in different configuration sections. Nginx
- Nginx 1332 2023-05-16 18:01:13
-
- How to configure a Node.js application to use an Nginx server
- Node.js is a platform built on the Chrome JavaScript runtime, which is used to easily build web applications with fast response speed and easy expansion. Node.js uses an event-driven, non-blocking I/O model to be lightweight and efficient. It is very suitable for data-intensive real-time applications running on distributed devices, such as real-time chat and so on. However, gzip encoding, static files, http caching, SSL processing, load balancing and reverse proxy, etc., can all be completed through nginx, thereby reducing the load on node.js and saving website traffic through nginx's powerful cache. Improve website loading speed. The flow chart nginx configuration is as follows: http{proxy_
- Nginx 1063 2023-05-16 17:58:35
-
- How to configure nginx file server in windows10 system
- Download the Windows version of nginx from the nginx official website: Unzip the downloaded software package: Note: The path to the unzipped package cannot contain Chinese characters, otherwise the nginx service cannot be started. Start the nginx service: "windows key + r key" to open and run, enter "cmd" Enter "dos terminal" c:\users\administrator>f:f:\>cdgx\nginx-1.16.1#Start command f:\gx\nginx-1.16.1>startnginxf:\gx\nginx-1.16.1> After the service is started successfully
- Nginx 3094 2023-05-16 17:55:06
-
- How to configure php, nginx and redis in Ubuntu
- The important things are mentioned above: 1. The following installations are all performed in the system root directory, that is: ubuntu@VM-0-8-ubuntu:/$ execute the command here; 2. Before modifying the following configuration files, it is best to back up the original files first. 1. To install nginx, enter the command: sudoapt-getinstallnginx. After successful installation, you can see the nginx directory under the system root directory etc. Enter the server IP in the browser to see niginx welcome
- Nginx 1147 2023-05-16 17:52:57
-
- What is the difference between root and alias in Nginx
- Project structure The Nginx directory structure is as follows: under html are the deployed front-end project pages, respectively zuiyu and test. Below I will use root and alias to access nginx--conf--logs--html--zuiyu--index.html --static--test--index.html--static test access the zuiyu project location/zuiyu{roothtml;indexindex.html;}location/zuiyu{aliashtml/zuiyu;indexindex.html;} access the test item
- Nginx 1232 2023-05-16 17:31:14
-
- How to solve nginx error 404Not Found when accessing dynamic interface
- Problem description: Designed and built a recruitment backend adjustment system, using AntDesignVue and JFinal frameworks on the front and back ends respectively. I want to deploy the project to the server, but external access keeps reporting error 404NotFound. The solution is to locate the error as: the dynamic interface cannot be found, but I don’t know whether there is a problem in the project or after the nginx proxy. Therefore, the interface of the project itself and the interface after nginx proxy must be tested separately. First test the interface within the project: enter the command on the ubuntu side: curlhttp://localhost:port/xxx/xxx Here my interface is: curlhttp://localhost:20294/
- Nginx 2673 2023-05-16 17:28:12
-
- What are the basic concepts of Nginx
- What is Nginx? Nginx was originally created as a web server to solve the problems of C10k. As a web server, it can serve your data at blazing speeds. But Nginx is more than just a web server, you can also use it as a reverse proxy to easily integrate with slower upstream servers such as Unicorn or Puma. You can distribute traffic appropriately (load balancer), stream media, dynamically resize images, cache content, and more. The basic nginx architecture consists of the master process and its worker processes. The master reads the configuration file and maintains the worker process, and the worker actually processes the request. base
- Nginx 4508 2023-05-16 17:02:48
-
- How to install and configure FastDFS to integrate Nginx-1.13.3
- 1: Download fastdfs We need a total of three files 1.fastdfs Distributed file storage system 2.libfastcommon Fastdfs function library 3.fastdfs-nginx-module When connecting to the nginx function module download, please note that the format downloaded here is .zip and not tar.gz. The reason for this is that an error will occur when using the fastdfs-nginx-module module to integrate nginx. The reason is that the fastdfs version must be >=5.11. Otherwise, an error will be reported when compiling nginx. You can look at the inst of the module
- Nginx 1631 2023-05-16 16:43:39
-
- How to solve the problem that nginx deployment vue project cannot find js css files
- Many times after npmrunbuild, the relative directory of the js file and css file automatically inserted by webpack in the index.html file is always wrong. After publishing it to the server, nginx cannot find the file. vue-cli@3 In vue-cli@3 you need to add a baseurl for all files that your webpack inserts into index.html. You need to create a new vue.config.js in the root directory of the project and add the following content:. ..module.exports={baseurl:isprod?'/basexxx/':
- Nginx 1415 2023-05-16 16:28:06
-
- How to configure Nginx ssl certificate
- If there is a firewall, remember to open port 443. Preparation materials: 1. Apply for an SSL certificate. You can search on Baidu for how to apply. Because domain name service providers are different, I will not go into details here; 2. nginx has been installed on the server and can Normal access. Start configuration: 1. Enter the nginx directory and check if there is http_ssl_module module./nginx-V2. If not, find the source code and enter the following command to install it (if there is, jump to step 6) #The path after prefix is yours Path to install nginx./configure--prefix=/usr/local/nginx--with-http_ssl_m
- Nginx 4054 2023-05-16 16:25:06
-
- How to configure nginx to support https
- 1. Introduction Hypertext Transfer Protocol http protocol is used to transfer information between web browsers and website servers. The http protocol sends content in clear text and does not provide any form of data encryption. If an attacker intercepts the web browser and website The information in the packets transmitted between servers can be directly read. Therefore, the http protocol is not suitable for transmitting some sensitive information, such as credit card numbers, passwords and other payment information. In order to solve this defect of the http protocol, another method needs to be used. A protocol: Secure Sockets Layer Hypertext Transfer Protocol https. For the security of data transmission, https adds the SSL protocol to HTTP. SSL relies on certificates to verify the identity of the server and provide browsers and services with
- Nginx 7417 2023-05-16 15:49:27
-
- How to start nginx in Linux system
- Introduction to Nginx: Nginx (enginex) is a high-performance HTTP and reverse proxy service. It has many very superior features: In the case of high concurrency of connections, Nginx is a good substitute for Apache services: Nginx is one of the software platforms often chosen by bosses in the virtual host business in the United States. How to start Nginx in Linux system: Startup code format: nginx installation directory address-cnginx configuration file address For example: [root@LinuxServersbin]#/usr/local/nginx/sbin/nginx-c/usr/local/nginx/conf/nginx
- Nginx 43705 2023-05-16 15:33:56
-
- What is the difference between nginx location and proxy_pass
- Pre-test access domain name: www.test.com/api/upload1.location and proxy_pass both contain /, then the real address without location matches the directory location/api/{proxy_passhttp://127.0.0.1:8080/;} access address :www.test.com/api/upload-->http://127.0.0.1:8080/upload2.location does not contain /, proxy_pass contains /, then the real address will contain /location/api{proxy_passhttp:/
- Nginx 1363 2023-05-16 15:16:21