Chapter:nginx Basic Operation Explanation
1. nginx Port Modification Problem
2. Nginx 301 Redirection Configuration
3. Configure the Nginx to support PHP under Windows
4. Configure the Nginx to support PHP under Linux
5. install PHP and php-fpm in the form of source code compilation
6. One practice of Nginx Multi-site configuration
7.
Nginx reverse proxy configuration Experiment
Customer requirement: Configure nginx or squid for reverse forwarding to the website, check whether the configuration file is correct, modify the local hosts configuration bkjia.com to
unix:/tmp/php-cgi.sock; fastcgi_index index.php; include fcgi.conf;} location/status {stub_ status on; Access_log off; } location/. (gif|jpg|jpeg|png|bmp|swf) $ {expires 30d;} location/. (JS|CSS)? $ {expires 12h;}
This enables the front-end VPS can reverse proxy any domain name to the backend VPs, as long as the domain name to the front-end VPS, the backend VPS for domain binding, then you can d
configuration of Nginx reverse proxyTwo example entries created in 2013-10-28 96098 views Server June spent a total of 12.234 MS conducted 3 database queries, and strive to provide you with this page.Chapter:nginx Basic Operation explanation 1.Nginx Port modification Problem 2.Nginx 301 Redirection Configuration 3.Under Windows, configure the Nginx to support PHP
Http://www.jb51.net/article/112183.htmRecently encountered a demand in the work, need to use Nginx reverse proxy websocket, after looking for some information, has been tested, so this article mainly introduces the Nginx reverse proxy websocket configuration related informat
without the WWW domain name, just do not write the site directory, but do 301 jump, such as: server {listen; server_name web126.com; rewrite ^/(. *) http://www.web126.com/$1 Permanent;} Iv. Add 404 pages Add 404 pages that can be added directly inside, such as: server {listen; server_name www.web126.com;#绑定域名 index index.htm index.html index.php;#默认文件 root/home/www/web126.com;#网站根目录 include location.conf;#调用其他规则, can also remove error_page 404/404.html; } Finally, there is a way to note that th
The environment is: Windows2003 + nginx. (using the 1.5.10 version, the current version, as recommended by the official documentation.)
A simple configuration, let Nginx first run up
Nginx configuration is relatively simple. conf directory to find the nginx.conf file, modify the following configuration
The code is as follows
Copy Code
Nginx is not only a high-performance Web server, but also a high-performance reverse proxy server. The following is a brief talk about Nginx reverse proxy function.What is a reverse proxy?A re
Firstly, the nginx is introduced as a reverse proxy to achieve load balancing.
The reverse proxy means to accept the connection request on the Internet with the reverse proxy server, then forward the request to the server
NGINX-1.10.1.TAR.GZCD nginx-1.10.1./ Configure--sbin-path=/usr/local/nginx/sbin--conf-path=/usr/local/nginx/conf/nginx.conf--pid-path=/usr/local/ Nginx/nginx.pid--with-http_ssl_module--with-pcre=/usr/local/src/pcre-8.39--with-zlib=/usr/local/src/zlib-1.2.8 --with-openssl=/usr/local/src/openssl-1.0.1tmakemake Installsudo make Install Note:sbin-path(boot file path)Conf-path(configuration file path)Pid-path(pid file, just installed default no, only afte
Nginx multi-Server reverse proxy configuration
The powerful regular expression support of Nginx can make the configuration of server_name flexible. If you want to create a multi-user blog, it is easy for each user to have their own second-level domain name.Let me talk about the use of server_name:Matching order of serv
Case:Web server: Domain name www.abc.com ip:192.168.21.129 Telecom Single line accessAccess users: Telecommunications broadband users, mobile broadband usersProblems: Telecommunications users open www.abc.com Normal, mobile users open www.abc.com very slow, or even openSolution: Place a CDN proxy server in the mobile computer room, through the intelligent DNS resolution, let the telecommunication user directly access the Web server, let the mobile use
nginx Reverse proxy configurationNginx Reverse proxy instructions do not need to add additional modules, the default comes with proxy_pass instructions, only need to modify the configuration file can be implemented reverse
; // maximum number of bytes cached by the buffer proxy client request, 134 proxy_connect_timeout 90; // nginx and backend server connection timeout (proxy connection timeout) 135 proxy_send_timeout 90; // backend server data return time (proxy sending timeout) 136 proxy_read_timeout 90; // after successful connection, backend server response time (
This article mainly introduced the automatic Nginx server's reverse proxy configuration method, the reverse proxy is the Nginx server's signboard function, needs the friend to be possible to refer to under
This would be great if you could reduce excessive extern
The following configuration contains an example of a more comprehensive reverse proxy for the Nginx configuration:
User www www
Worker_processes 8;
Events {
Use Epoll;
Worker_connections 10240;
}
Pid/opt/work/log/nginx.pid;
Error_log/dev/null error;
HTTP {
Include/opt/nginx/conf/mime.types;
Default_type text
high-performance and highly available, the WebSocket protocol requires a load-balancing layer, Nginx supports WebSocket starting from 1.3, which can be used as a reverse proxy and load balancing for websocket programs. Nginx Configuration Note: See official documents said Nginx after 1.3 version of the support WebSocket reve
Nginx | reverse proxy server load balancer | principle and configuration | preliminary study
Nginx | reverse proxy server load balancer | principle and configuration | preliminary study
Nginx
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.