: This article describes how to parse the Nginx configuration file. if you are interested in the PHP Tutorial, refer to it. After Nginx is installed, a corresponding installation directory is generated. according to the preceding installation path,
Address: http://raocl.spaces.live.com/blog/cns! 3f6cff93fd0e3b79! 181. Entry http://edu.codepub.com/2010/0504/22510.php
Nginx 502 Bad Gateway means that the requested PHP-CGI has been executed, but the PHP-CGI process is terminated for some reason (
SyntaxNginx Rewrite is much easier to understand than Apache. The main instructions include if, rewrite, set, return, and break. rewrite is the most critical command.Rewrite The code is as follows:Copy code Syntax: rewrite regex replacement
I. Environment preparation
Install centos: 6.2For centos introduction, see: http://baike.baidu.com/view/26404.htm
Nginx version: 1.2.1 about nginx, see: http://baike.baidu.com/view/926025.htm
2. Linux Common commands to introduce how
Check some of the information, read some other people wrote the document, summarized as follows, to realize the sharing of Nginx sessionPHP server has more than one, with nginx load balancer, so that the same IP access to the same page will be
Nginx configuration file DetailedUser Nginx;#用户Worker_processes 8;#工作进程, based on hardware adjustment, greater than or equal to CPU coresError_log Logs/nginx_error.log Crit;#错误日志PID Logs/nginx.pid;#pid放置的位置Worker_rlimit_nofile
This article mainly introduces the method of using LUA to write the authentication module of the Nginx server, such as the popular social application access and other functions, the need of friends can refer to the
Over the past two days, I have
Rewrite is a server rewrite pulse technology that allows servers to support URL rewriting. It is a new and popular server technology. It can also restrict specific IP addresses to access websites. In many cases, access from an IP address can easily
A Regular expression matches, where:
* ~ to Match case sensitivity* ~* matching for case-insensitive case*!~ and!~* are case insensitive and case-insensitive mismatches, respectively
Two File and directory matching, where:
*-F and!-f are used to
A Regular expression matching, where:* ~ For case-sensitive matching* ~* for case-insensitive matching*!~ and!~* are case insensitive and case insensitiveTwo File and directory matching, where:*-F and!-f to determine if a file exists*-D and!-d to
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.