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 Common Problem Other Tech CMS Tutorial Java System Tutorial Computer Tutorials Hardware Tutorial Mobile Tutorial Software Tutorial Mobile Game Tutorial
- Classify:
-
- How to use nginx forward proxy to forward intranet domain names
- In the customer's intranet environment, ppoe dial-up is used to access the Internet. The provider is a secondary operator within the group. The network environment is relatively complex. The group's internal network and office network are interconnected using a static routing protocol. The general situation is as follows: It turns out that the customer accesses the production business. They are all accessed through IP addresses. As more and more production services are produced, customers now strongly require the use of domain names to access services. However, given the complexity of the intranet environment, it is difficult to deploy a domain name server, and it is also difficult to deploy access services. Later, I learned nginx and learned that nginx can implement forward proxy to forward domain names. Instructions: 1. Configure domain name resolution on Alibaba Cloud. For example, oa.xxxx.com, the resolution address is the intranet address 172.31.101.362, 172.
- Nginx 4028 2023-05-15 21:46:04
-
- How to use Docker Compose to implement nginx load balancing
- Use docker network management and container ip settings as basic knowledge to implement nginx load balancing. View all docker networks dockernetworkls/*networkidnamedriverscopeb832b168ca9abridgebridgelocal373be82d3a6acomposetest_defaultbridgelocala360425082c4hosthostlocal154f600f0e90nonenulllocal*///composetest_default is the previous article when introducing compose, do
- Nginx 1868 2023-05-15 21:37:12
-
- How to use Nginx to limit access frequency, download rate and number of concurrent connections
- 1. Overview of modules and instructions used to limit access frequency, concurrent connections, and download speed ngx_http_limit_req_module: used to limit the number of requests per unit time, that is, rate limit, using the leaky bucket algorithm "leakybucket" ngx_http_limit_conn_module: used to limit connections at the same time Number, that is, concurrency limit limit_rate and limit_rate_after: Download speed setting leaky bucket algorithm (leakybucket) The algorithm idea is: water (request) is poured into the bucket from above, flows out from below the bucket (processed), and the water that is too late to flow out is stored in the bucket (buffer) , flows out at a fixed rate; when the bucket is full, the water
- Nginx 1931 2023-05-15 21:22:22
-
- How to configure common functions after Nginx installation
- 1. Separate the main configuration file from the virtual host. If there are many virtual hosts, it will be more convenient to separate them. They can also be divided according to functions and services. The following takes two virtual hosts as an example. Complete configuration file after removing blank lines and comments: [root@nginx-01conf]#egrep-v"#|^$"nginx.conf.bakworker_processes1;events{worker_connections1024;}http{includemime.types;default_typeapplication/octet- stream;send
- Nginx 1298 2023-05-15 21:19:11
-
- How to solve the problem of Nginx forwarding lost cookies
- 1. Lost Cookies Operation path one: http://localhost:8080/content/requestAction!showMainServiceReqDetail.action path two: http://localhost/content/requestAction!showMainServiceReqDetail.action path three: http://localhost/clp/ requestAction!showMainServiceReqDetail.action path one is direct access, path two is the same as path
- Nginx 3263 2023-05-15 21:10:12
-
- How to achieve high availability by combining keepalived with nginx
- 1. Introduction keepalived is a high-availability solution for LVS services based on the vrrp protocol, which can be used to avoid single points of failure. An LVS service will have two servers running keepalived, one as the main server (master) and one as the backup server (backup), but it appears as a virtual IP to the outside world. The main server will send specific messages to the backup server. When the backup server When the server cannot receive this message, that is, when the main server goes down, the backup server will take over the virtual IP and continue to provide services, thereby ensuring high availability. keepalived is the perfect implementation of vrrp, so before introducing keepalived, let’s introduce v
- Nginx 1562 2023-05-15 21:07:12
-
- How to configure Nginx virtual host in CentOS7.3
- Experimental environment A minimally installed centos7.3 virtual machine configures the basic environment 1. Install nginxyuminstall-yepel-*yumisntall-ynginxvim 2. Establish the site root directory of the virtual machine host mkdir/var/wwwrootmkdir/var/wwwroot/site1mkdir/var/ wwwroot/site2echo-e"site1">>/var/wwwroot/site1/index.htmlecho-e"site2">>/var/
- Nginx 1625 2023-05-15 20:55:19
-
- How Docker runs nginx and mounts local directories into images
- 1. Pull the image dockerpullnginx from hup. 2. Create the directory to be mounted: mkdir-p/data/nginx/{conf, conf.d, html, logs} 3. You must first have a configuration file to start the container 3.1vim/data/conf/nginx. confusernginx;worker_processes1;error_log/var/log/nginx/error.logwarn;pid/var/run/nginx.pid;events{worker_connections1024;}http{includ
- Nginx 1326 2023-05-15 20:25:16
-
- What are the differences between Nginx and Apache?
- Nginx, like Apache, is HTTP server software. Both adopt modular structure design in functional implementation. Both support common language interfaces, such as PHP, Perl, Python, etc., and also support forward and reverse proxies, virtual hosts, URL rewriting, compressed transmission, SSL encrypted transmission, etc. The main difference between Apache and NGINX is their design architecture. Apache uses a process-driven approach and creates a new thread for each request. NGINX uses an event-driven architecture to handle multiple requests in a thread. What is Apache HTTP server? Apache HTTP server is an open source cross-platform web server, also known as "httpd
- Nginx 5818 2023-05-15 19:46:04
-
- How to deploy single-page application with Docker+Nginx
- From development to deployment, do it yourself. When we develop a single-page application, npmrunbuild will generate an index.html in the dist directory after executing the build. So how to deploy this index.html to the server? Directory structure dist/: Static files built by the front-end docker/: Configuration file configuration required for the mirror nginx picks a few configuration points to talk about. First, gzip compresses resources to save bandwidth and improve browser loading speed. Although webpack already supports it during build Just generate a .gz compressed package, but you can also enable gzipon through nginx;gzip_disable"msie6";#0-9, etc.
- Nginx 920 2023-05-15 19:40:19
-
- How to solve the problem that nginx deployment vue project cannot find js css file
- 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 2979 2023-05-15 19:40:12
-
- How to configure pseudo-static and adapt client in nginx
- The backend uses the thinkphp3.2.3 framework. If you are using other languages or languages, please make appropriate modifications to server{listen80;server_namewww.morgen.club;#charsetkoi8-r;#access_loglogs/host.access.logmain;website root directory location/ {roothtml;indexindex.htmlindex.htm;#Set the access device set$source_device'index';#Judge it to be a mobile client or ipadif($ht
- Nginx 1728 2023-05-15 19:37:04
-
- How to configure Nginx server to prevent Flood attacks
- In the test, I will simply tell you how to configure the nginx limit request module and how it protects your website from being attacked by DDoS or other http-based denial of service attacks. In this test, I saved the sample page in blitz.io (now a free service) and named it about.html to test the limit_req directive. First, I used the following command on blitz to initiate 1075 concurrent requests It lasts for one minute, the response timeout is set to 2 minutes, the area is California, and all other states except status 200 are set to abnormal status. Even 503 is considered unsuccessful. -p1-1075:60-- status2
- Nginx 925 2023-05-15 18:52:06
-
- How does Nginx cooperate with PHP to realize the function of generating real-time thumbnails?
- nginx configuration: Copy the code as follows: #Assume that there is a file on the server: abc.jpg, and the original image can be accessed through http://filefs.domain.com/file/abc.jpg. In fact, generally, we only save the content of "/file/abc.jpg" in the database. #Now, we need to implement the thumbnail #abc.jpg.w320.jpg (w320, 320px width) automatically generated by the server through http://filefs.domain.com/file/abc.jpg.w320.jpg. and return image data. #The following two conditions must be met:
- Nginx 1077 2023-05-15 18:37:06
-
- How to install and configure Nginx in 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 2097 2023-05-15 18:07:25