current location:Home > Technical Articles > Operation and Maintenance > Nginx

  • How to use Nginx reverse proxy and load balancing to build a multi-person test environment
    How to use Nginx reverse proxy and load balancing to build a multi-person test environment
    Implementation Principle When we visit a website, there will be a user-agent header in the request header, such as mozilla/5.0(macintosh;intelmacosx10.12;rv:50.0)gecko/20100101firefox/50.0. This ua can be customized, many Browser plug-ins also support adding custom UAs, such as Firefox's useragentswicher plug-in. As shown in the picture, a custom ua has been added here, and the content has been changed to its own name. By requesting the website through this ua, we can see in the request header that the ua has become our own, which is an identification. According to this ua, it is judged through nginx. Different
    Nginx 1183 2023-05-23 17:29:47
  • Nginx service installation and software upgrade methods
    Nginx service installation and software upgrade methods
    Experimental environment: [root@nginx~]#cat/etc/redhat-releaseCentOSLinuxrelease7.4.1708(Core)[root@nginx~]#uname-r3.10.0-693.el7.x86_64 Please prepare a low version Nginx server for low version environment installation. Reference: Novices can also complete the 0-based deployment of Nginx services, prepare and compile new versions of Nginx software, view old versions of Nginx: [root@nginxnginx-1.10.3]#/app/nginx/sbin/nginx-Vnginxversion:ngin
    Nginx 1407 2023-05-23 16:55:06
  • How to install LEMP environment for Nginx server in Ubuntu
    How to install LEMP environment for Nginx server in Ubuntu
    Preparation for installing the ubuntu16.04 server version Step 1: Install nginx server 1. nginx is an advanced, resource-optimized web server program used to display web pages to visitors on the Internet. We start with the installation of the nginx server and use the apt command to obtain the nginx program from the official software repository of ubuntu. $sudoapt-getinstallnginx install nginx2 on ubuntu16.04, then enter the netstat and systemctl commands to confirm that the nginx process has been started and bound to port 80. $netstat-tlpn check nginx network port connection $s
    Nginx 997 2023-05-23 16:49:06
  • How to configure nginx static file server
    How to configure nginx static file server
    配置步骤配置nginx\nginx-1.13.4\conf\nginx.conf文件#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_typeapplicat
    Nginx 1768 2023-05-23 16:43:13
  • How to recompile Nginx and add modules
    How to recompile Nginx and add modules
    1. Find the source code root directory where nginx is installed (that is, the directory where the installation package is stored). If not, download the new source code and decompress cdsoftwaresnginx-1.10.2nginx-1.10.2.tar.gz2. Check the nginx version and compilation parameters /usr/local /nginx/sbin/nginx-v3, enter the nginx source code directory cdnginx-1.10.24, recompiled code and modules./configure--prefix=/usr/local/nginx--with-http_ssl_module5, execute make (note: thousands Never make in
    Nginx 2751 2023-05-23 15:28:50
  • How to configure and use Nginx server in Node.js
    How to configure and use Nginx server in Node.js
    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 2508 2023-05-23 15:25:06
  • How to configure Nginx to disable case sensitivity of PHP variable names
    How to configure Nginx to disable case sensitivity of PHP variable names
    Nginx (pronounced "engineX") is an open source, high-performance reverse proxy server that supports many load balancing algorithms. It was created by Igor Sysoev of Russia, and the first public version was released in 2004. Since then, it has become the choice of many websites and companies, including Facebook, Google, LinkedIn, Dropbox and many more. When using Nginx to forward requests for PHP websites, this may cause some problems because variable names in PHP are case-sensitive. Especially in the configuration of Nginx, if the URL contains uppercase letters when accessing the URL, a "404NotFound" may appear.
    Nginx 1587 2023-05-23 15:16:30
  • Nginx Cache configuration plan and how to solve related memory usage problems
    Nginx Cache configuration plan and how to solve related memory usage problems
    5 options for nginx caching cache 1. One of the traditional caches (404) This method is to direct the 404 error of nginx to the backend, and then use proxy_store to save the page returned by the backend. Configuration: location/{root/home/html/;#Home directory expires1d;#Expiration time of the web page error_page404=200/fetch$request_uri;#404 ​​directed to the /fetch directory} Location/fetch/{#404 directed here internal ;#Indicates that this directory cannot be directly accessed externally
    Nginx 2518 2023-05-23 14:01:38
  • How to build NFS server with nginx
    How to build NFS server with nginx
    Introduction: What is an nfs server? NFS (Network File System) is a network file system. Its biggest function is to allow different machines and different operating systems to share files with each other through the network. Users can access files elsewhere on the network just like Same as using your own computer. Why do you need the nfs server to get data from the same place to ensure the consistency of website data? No matter which back-end server the load balancer distributes the request to, the content seen by the client is consistent. Whether nfs server is the best solution? No, nfs is a relatively cheap solution 1. Generally, companies will not use it. The performance is not particularly high. It is recommended to use a dedicated storage server. Advantages and Disadvantages of nfs
    Nginx 1297 2023-05-23 12:55:21
  • How to compile and install nginx in lnmp environment
    How to compile and install nginx in lnmp environment
    The linux system I use is centos7.1. If the Linux system does not have gcc and other compilation software pre-installed, you can use the yum source to install it. To install nginx, you first need to install the dependent modules pcre, zlib, and openssl. The gzip module requires the zlib library. The rewrite module requires the pcre library. The ssl function requires the openssl library. 1. Install pcre dependencies and download pcre-8.38wgetftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.38. tar.gz decompress tar-zxvfpcre-8.38.t
    Nginx 1038 2023-05-23 12:34:06
  • How to restart nginx service in ubuntu
    How to restart nginx service in ubuntu
    1. Use the shortcut key [Ctrl+Alt+T] to open the terminal command mode. 2. You can restart the nginx service in the following ways. Method one, in the nginx executable directory sbin, enter the following command to restart/nginx-sreload#Restart method two, find the current nginx process number, and then enter the command: kill-HUP process number to restart the nginx service#ps-ef|grepnginx #Find the current nginx process number]#kill-TERM132#Kill the nginx process, 132 is the nginx process number
    Nginx 3282 2023-05-23 12:22:13
  • How to install and deploy Nginx in Centos 6.5 64-bit
    How to install and deploy Nginx in Centos 6.5 64-bit
    1. Introduction to nginx nginx is a web server that can also be used for load balancing and reverse proxy. The most commonly used one at present is load balancing. I will not introduce the specific introduction. Baidu has many. Let’s go directly to the installation step 2. nginx Installation 1. Download nginx and related components. The Linux system is centos6.564. I directly switch to the root user to install and enter the user directory to download the program and download related components [root@localhostsrc]#wgethttp://nginx.org/download/nginx- 1.10.2.tar.gz omit installation content...[root@localhos
    Nginx 1097 2023-05-23 12:19:06
  • Nginx server setup and basic configuration example analysis
    Nginx server setup and basic configuration example analysis
    nginx (enginex) is a high-performance http server and reverse proxy server. This software was developed to solve the c10k problem. The architecture of nginx takes advantage of many modern operating system features to implement a high-performance http server. For example, on Linux systems, nginx uses epoll, sendfile, fileaio, directio and other mechanisms, which makes nginx not only highly efficient, but also has a very low resource usage. Officials claim that nginx only requires 2.5m of memory to maintain 10,000 inactive httpkeep-alive connections. . nginx will run multiple processes simultaneously on demand: a main process (ma
    Nginx 1544 2023-05-23 11:22:06
  • How to configure multiple versions of PHP with Nginx and Apache
    How to configure multiple versions of PHP with Nginx and Apache
    Sometimes our projects cannot all have the same PHP version, and each project needs to be configured with a different version of PHP. Pagoda and PHPStudy are implemented through the following configuration: Nginx cut conf (optional) add includevhosts/* in nginx.conf .conf; In this way, Nginx will automatically import all *.conf files in the current directory -> vhosts directory, making it easier for each project to manage the Nginx configuration file separately and configure multiple versions of PHP. Add server{listen80;server_namelocalhost;root"D: in the conf file: /WWW"
    Nginx 1036 2023-05-23 11:10:06
  • How to configure Nginx server https
    How to configure Nginx server https
    Apply for a certificate There are currently many organizations online that provide free personal SSL certificates, with validity periods ranging from a few months to a few years. Take startssl: https://www.startssl.com as an example. After successful application, it will be valid for 3 years and can be renewed for free after expiration. The specific application process is also very simple. After registering and logging in, select certificateswizard>>dvsslcertificate to apply for a free SSL certificate. After verifying the domain name through email, then generate the csr of the ssl certificate in your own server. Remember the secret to generate the input. You will use it later: opensslreq-newkeyrsa:2048-keyoutwe
    Nginx 1549 2023-05-23 11:01:06

Tool Recommendations

jQuery enterprise message form contact code

jQuery enterprise message form contact code is a simple and practical enterprise message form and contact us introduction page code.
form button
2024-02-29

HTML5 MP3 music box playback effects

HTML5 MP3 music box playback special effect is an mp3 music player based on HTML5 css3 to create cute music box emoticons and click the switch button.

HTML5 cool particle animation navigation menu special effects

HTML5 cool particle animation navigation menu special effect is a special effect that changes color when the navigation menu is hovered by the mouse.
Menu navigation
2024-02-29

jQuery visual form drag and drop editing code

jQuery visual form drag and drop editing code is a visual form based on jQuery and bootstrap framework.
form button
2024-02-29

Organic fruit and vegetable supplier web template Bootstrap5

An organic fruit and vegetable supplier web template-Bootstrap5
Bootstrap template
2023-02-03

Bootstrap3 multifunctional data information background management responsive web page template-Novus

Bootstrap3 multifunctional data information background management responsive web page template-Novus
backend template
2023-02-02

Real estate resource service platform web page template Bootstrap5

Real estate resource service platform web page template Bootstrap5
Bootstrap template
2023-02-02

Simple resume information web template Bootstrap4

Simple resume information web template Bootstrap4
Bootstrap template
2023-02-02

Cute summer elements vector material (EPS PNG)

This is a cute summer element vector material, including the sun, sun hat, coconut tree, bikini, airplane, watermelon, ice cream, ice cream, cold drink, swimming ring, flip-flops, pineapple, conch, shell, starfish, crab, Lemons, sunscreen, sunglasses, etc., the materials are provided in EPS and PNG formats, including JPG previews.
PNG material
2024-05-09

Four red 2023 graduation badges vector material (AI EPS PNG)

This is a red 2023 graduation badge vector material, four in total, available in AI, EPS and PNG formats, including JPG preview.
PNG material
2024-02-29

Singing bird and cart filled with flowers design spring banner vector material (AI EPS)

This is a spring banner vector material designed with singing birds and a cart full of flowers. It is available in AI and EPS formats, including JPG preview.
banner picture
2024-02-29

Golden graduation cap vector material (EPS PNG)

This is a golden graduation cap vector material, available in EPS and PNG formats, including JPG preview.
PNG material
2024-02-27

Home Decor Cleaning and Repair Service Company Website Template

Home Decoration Cleaning and Maintenance Service Company Website Template is a website template download suitable for promotional websites that provide home decoration, cleaning, maintenance and other service organizations. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-05-09

Fresh color personal resume guide page template

Fresh color matching personal job application resume guide page template is a personal job search resume work display guide page web template download suitable for fresh color matching style. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-29

Designer Creative Job Resume Web Template

Designer Creative Job Resume Web Template is a downloadable web template for personal job resume display suitable for various designer positions. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28

Modern engineering construction company website template

The modern engineering and construction company website template is a downloadable website template suitable for promotion of the engineering and construction service industry. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!