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

  • How to install SSL certificate and configure WordPress CDN under Linux Nginx
    How to install SSL certificate and configure WordPress CDN under Linux Nginx
    1. nginx requires two configuration files to install the SSL certificate (warm reminder: please back up the server configuration file you need to modify before installing the certificate) 1_root_bundle.crt; 2_domainname.com.key. Note: These three certificate files are all in the folder fornginx.zip. For example: 1_root_bundle.crt is the root certificate chain (public key), and 2_domainname.com.key is the private key. (Among them: the certificate public key and private key files are generally named after your domain name; the nature of the certificate suffixes crt and cer are the same). 2. Modify nginx certificate code 1. Open the conf directory in the nginx installation directory
    Nginx 1308 2023-05-13 22:43:17
  • How to deploy DoNetCore to Alibaba Cloud with Nginx
    How to deploy DoNetCore to Alibaba Cloud with Nginx
    To configure the domain name and server for the basic environment, please first purchase and create an application instance based on the cloud server ecs. Select the system image as ubuntu16.04, connect remotely through ssh on this machine, and perform related configurations ssh...sudoapt-getupdatesudpapt-getupgradesudoapt- getautoremovesudoapt-getclean install and configure nginxsudoapt-getinstallnginxsudoservicenginxstartsudogedit/etc/nginx/sites-available/defau
    Nginx 893 2023-05-13 22:37:11
  • How to install and configure nginx for LNMP compilation and installation
    How to install and configure nginx for LNMP compilation and installation
    1. Preface This installation uses source code installation. The main resource package is downloaded from the official website, and the secondary dependencies are installed using yum. This article only involves the installation of nginx, not the configuration of nginx. Corresponding to how nginx accesses php, this article does not involved. 2. Installation steps nginx2.1, download nginxwgethttp://nginx.org/download/nginx-1.12.0.tar.gz2.2, download pcre installation package wgetftp://ftp.csx.cam.ac.uk/pub /software/programming/pcre/pcre-8.39.tar.gz package
    Nginx 688 2023-05-13 22:22:18
  • nginx JavaScript capabilities nginScript example analysis
    nginx JavaScript capabilities nginScript example analysis
    nginx can mainly do the following: 1. Working on the seventh layer of tcp, it can analyze and process all contents of the http protocol. 2. Support lua, perl, javascript dynamic language 3. Support third-party plug-ins Let’s talk about nginscript1. nginscript is a subset of javascript/ecmascript. It implements most of the capabilities of the JavaScript language, does not fully comply with the ECMAScript standard, and abandons the more difficult parts of JavaScript. 2. nginscript is not implemented through the v8 engine. But through a smaller, lower energy consumption, more consistent with nginx application
    Nginx 1103 2023-05-13 22:04:10
  • nginx installation example code analysis
    nginx installation example code analysis
    nginx installation system platform: centosrelease6.6 (final) 64-bit. 1. Install the compilation tools and library files yum-yinstallmakezlibzlib-develgcc-c++libtoolopensslopenssl-devel 2. First, install pcrepcre to enable ngnix to support the rewrite function. 1. Download the pcre installation package, download address: [root@bogonsrc]#wgethttp://downloads.sourceforge.net/project/pcre/pcre/8.35/pcre-8
    Nginx 1032 2023-05-13 21:58:10
  • Nginx reverse proxy cross-domain basic configuration method
    Nginx reverse proxy cross-domain basic configuration method
    nginx interface service reverse proxy basic configuration server{listen8443;#Listening port number server_namea.test.com;#Server name client_max_body_size100m;#Define the timeout for reading the client request header sslon;ssl_certificatetest.pem;ssl_certificate_keytest.key;ssl_session_timeout5m ;ssl_protocolssslv3tlsv1.2;ssl_ciphersecdhe-rsa-aes256-sha38
    Nginx 1350 2023-05-13 21:49:10
  • Tomcat7 Nginx Redis configuration method under CentOS6.5
    Tomcat7 Nginx Redis configuration method under CentOS6.5
    1. Installation and configuration of tomcat 1. In the server.xml file, modify the port of tomcat2. A total of 3 modifications are required, namely 8080, 8005 and 8009, which are modified to 9080, 9005 and 9008 respectively. After configuring this step, enter http://localhost:8080 and http://localhost:9080 in the browser to see the tomcat homepage. 2. nginx configuration to achieve load balancing. 2.1Install pcre. Because the rewrite module of nginx requires pcre support, the pcre library needs to be installed. 2.1.1. Obtain the pcre compilation and installation package at http
    Nginx 1222 2023-05-13 21:34:04
  • How to upgrade nginx to support HTTP/2 server push
    How to upgrade nginx to support HTTP/2 server push
    Upgrade nginx to 1.14.01 and configure the official yum source of nginx. Create the configuration file /etc/yum.repos.d/nginx.repo and write the following content [nginx]name=nginxrepobaseurl=http://nginx.org/packages/centos/7/$basearch/gpgcheck=0enabled=12, Update nginxyumupdate3, restart nginxsystemctlrestartnginx4, verify nginx version $curl-i127.0.0.1http/1.1301
    Nginx 896 2023-05-13 21:25:13
  • Analysis of Nginx installation and configuration examples under Linux
    Analysis of Nginx installation and configuration examples under Linux
    1. Install compiled files and library files yum-yinstallmakezlibzlib-develgcc-c++libtoolopensslopenssl-devel 2. Install pcre. The pseudo-static matching rules of nginx's rewrite require regular expressions, and pcre plays this role. Download address: wgethttp://downloads.sourceforge.net/project/pcre/pcre/8.35/pcre-8.35.tar.gz If wget is not installed, you need to install wget first, yum-yinstallwget.
    Nginx 1020 2023-05-13 21:16:04
  • How to configure multiple virtual hosts in nginx
    How to configure multiple virtual hosts in nginx
    It is very convenient to configure the virtual host vhost under nginx. Mainly add a server to the nginx configuration file nginx.conf. For example, I want to configure two virtual hosts and access them through the domain names linux.com and linux2.com. The corresponding directories are /usr/htdocs/linux and /usr/. htdocs/linux2 (this directory is where your development project files are placed). Because I installed a local virtual machine, I first added two redirections to the hosts file: 192.168.20.250linux.com//192.168.20.250 is my virtual machine. The IP of the machine, the bridge mode used is 192
    Nginx 1484 2023-05-13 21:13:09
  • How to bind domain name and set root directory to nginx server
    How to bind domain name and set root directory to nginx server
    It is very convenient for the nginx server to bind the domain name and set the root directory. First, enter the nginx installation directory, then execute vimconf/nginx.conf to open the nginx configuration file, and find the code snippet of server{........}, here The code snippet is used to configure the corresponding site. First, we should resolve the domain name to the IP address of our server in the domain name control panel, and then the binding can take effect. First, find the server_name item in our code snippet and then add the following domain name. Change it to the domain name we want to bind. Root is the specified root directory. Just set it to the directory we specify. What if we want to bind multiple domain names?
    Nginx 2294 2023-05-13 21:10:18
  • How to set up Nginx and Tomcat servers to achieve load balancing under Debian
    How to set up Nginx and Tomcat servers to achieve load balancing under Debian
    The basic concept of load balancing Load balancing (loadbalancing) is a computer network technology used to distribute load among multiple computers (computer clusters), network connections, CPUs, disk drives or other resources to achieve optimal resource usage. The purpose is to maximize throughput, minimize response time, and avoid overload. Using multiple server components with load balancing instead of a single component can improve reliability through redundancy. Load balancing services are usually performed by specialized software and hardware. One of the most important applications of load balancing is the use of multiple servers to provide a single service. This solution is sometimes called a server farm. Usually, load balancing is mainly used in web websites, large-scale Internet
    Nginx 1265 2023-05-13 21:01:04
  • How to implement Nginx reverse proxy to support long connections
    How to implement Nginx reverse proxy to support long connections
    Preface The connection between nginxupstream and the backend is a short connection by default. It initiates a connection to the backend through http/1.0 and sets the "connection" header of the request to "close". The connection between nginx and the front end is a long connection by default. After a user establishes a connection with nginx, he sends multiple requests through this long connection. If nginx is only used as a reverseproxy, one user connection may require multiple short connections to the backend. If the back-end server (origin site or cache server) is not strong enough to handle concurrent connections, bottlenecks may occur. nginx current upst
    Nginx 2181 2023-05-13 20:52:04
  • How to install Nginx server under CentOS7
    How to install Nginx server under CentOS7
    The environment required for installation nginx is developed in C language. It is recommended to run on Linux. Of course, you can also install the windows version. This article uses centos7 as the installation environment. 1. gcc installation To install nginx, you need to compile the source code downloaded from the official website first. Compilation depends on the gcc environment. If there is no gcc environment, you need to install: yuminstallgcc-c++ 2. pcrepcre-devel installation pcre (perlcompatibleregularexpressions) is a perl library, including perl Compatible regular expression library. nginx's http module uses PCRE to parse regular expressions, so
    Nginx 3404 2023-05-13 20:43:04
  • How to install nginx1.12.1 under centos6.4
    How to install nginx1.12.1 under centos6.4
    Installation required environment 1.gcc installation To install nginx, you need to compile the source code downloaded from the official website first. The compilation depends on the gcc environment. If there is no gcc environment, you need to install: yuminstallgcc-c++2.pcrepcre-devel installation pcre (perlcompatibleregularexpressions) is A perl library that includes a perl-compatible regular expression library. The http module of nginx uses pcre to parse regular expressions, so the pcre library needs to be installed on Linux. pcre-devel is a secondary development library developed using pcre. nginx also requires this library. Command: yu
    Nginx 1550 2023-05-13 20:34:15

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!