This article mainly introduces how to set multi-version PHP coexistence in Linux and use Nginx servers. it relies on the php-fpm tool for management. For more information, see
Application Environment
In the LNMP environment, the current PHP version
The following uses the reverse proxy function of Nginx to configure an Nginx load balancing server. The backend has three service nodes for providing Web Services, and load balancing of the three nodes is achieved through Nginx scheduling./Etc/nginx/
Load Balancing with Nginx (2013-5-211:43)1. Mount the CD, delete the local yum library file, and create a new yum repository file.[Root @ tdoalnmp_oa] # mount/dev/cdrom/mnt/Mount: blockdevice/dev/cdromiswrite-protected, mountingread-only[Root @ tdoa
First 1, modify the Nginx configuration fileAdd in nginx.confProxy_set_header x-forwarded-for $proxy _add_x_forwarded_for;Proxy_set_header X-real-ip $remote _addr;2. Modify the Tomcat configuration fileModify in Server.xmlprefix=
Nginx can be the same as other Web servers support virtual hosting, that is, an IP corresponding to multiple domain names to support multi-site access, like an IP corresponding to a site, so it is "virtual". How many sites do you want to put under
[07-Dec-2015 17:07:08] NOTICE: [pool www] 'user' directive is ignored when FPM is not running as root[07-Dec-2015 17:07:08] NOTICE: [pool www] 'group' directive is ignored when FPM is not running as root
Check php-fpm the log to find the above hint,
Operating System:Centos/linux (Kernel version: 3.10.0-229.7.2.el7.x86_64)
Server:nginx/1.9.2
PHP Version:5.6.9
Phenomenon:Uploading a file from a browser fails to view the post data via Firebug, prompting the post data to be too
Here we will explain in detail the bugs in the healthcheck_nginx_upstreams module. For the installation and use of the healthcheck_nginx_upstreams module, please read the previous blog to learn.
In the testing environment, use nginx for reverse
Simple Nginx Configuration
Link Configuration of Nginx and MySQL Databases
One service configuration in http: listening port, server name, disabling lua_code_cache (debugging Nginx with different restarts), root directory setting, default
Both LVS and Nginx can be used as multi-host load solutions. They have advantages and disadvantages. in the production environment, you need to analyze the actual situation and make use of it.First of all, I would like to remind you that technology
In one project, the Keep-Alive configuration never worked. After checking for a long time, the code could not be found. Then, Ling Guang thought that it should be a problem with reverse proxy configuration.That is: client ----- nginx proxy -----
Display Random Home module (Random Index)in general, a site is the default home page is defined index.html, index.shtml, index.php, and so on, if you want to site there are a lot of pages want to display randomly to the user browsing, the program to
Nginx as an HTTP server, with the following basic features:
Process static files, index files, and auto index; Open file descriptor buffering.
Non-cached reverse proxy acceleration, simple load balancing and fault tolerance.
FastCGI, simple load
1: Make sure your system is UTF coded
[Root@tserver ~]# env|grep LANG
lang=en_us. UTF-8
The default encoding in the 2:nginx configuration file is set to Utf-8
Server
{
listen;
server_name. inginx.com;
Index index.html index.htm
Attention:The syntax of the version after Nginx 1.1.8 is changed to Limit_conn_zone $binary _remote_addr zone=name:10m;Name is zone. Please see here http://nginx.org/en/docs/http/ngx_http_limit_conn_module.html
Limit number of connections:To limit
In terms of ordinary reverse proxies,The configuration of the Nginx is relatively simple, such as:
Location ~
/* {
proxy_pass http://127.0.0.1:8008
}
Or you can
Location/
{
proxy_pass http://127.0.0.1:8008;
}
The
The HTTP protocol adds CONTENT-MD5 HTTP headers, but Nginx does not support this feature, and the authorities explicitly say it will not add to this feature. Because each request needs to read the entire file to calculate MD5 value, the performance
The ngx_http_headers_module module I. Preface ngx_http_headers_module module provides two important instructions Add_header and expires To add the "Expires" and "Cache-control" header fields, add any field fields to the response header.
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.