script_filename $document _root$fastcgi_script_name;1th line, tell Nginx where to find PHP-FPM service. This depends on your php-fpm, some communication through the sock as shown above, and some through 127.0.0.1:9000 (in general) to communicate, please find out your php-fpm with the kind of plan and modify this line.Line 4th, here need to include a file called Fastcgi_params, should and nginx.conf in a folder, the path to fill the
phpMyAdmin can be understood as a Web program, to be placed in Nginx's WWW directory to interpret execution, my www directory is/var/www
Configuration of the virtual host, access to Www.mathandcs.com/phpmyadmin, reported 500 errors.
1. View Nginx error log:
Tail-f/var/log/nginx/error.log found nothing wrong, very confu
Today encountered a fun problem, also thought is nginx cache, all kinds of cleanup is bad to the Nginx uninstall, and then think about the problem should be Chinese domain name, the Chinese code, done, as follows:... server { listen ; server_name abc.cn; Root/home/abc/abcpage; index/1/abcpage.html; } server { listen ; server_name Chinese. cn;
/{# matches any query that has/images/start and stops the search. Any regular expression will not be tested.[Configuration C]} Location ~* \. (Gif|jpg|jpeg) $ {# matches any request that has a GIF, JPG, or JPEG end. However, all requests for the/images/directory will use Configuration C.[Configuration D]} Example Request: /-Configuration A Configuration B/documents/document.html /images/1.gif, Configuration C /documents/1.jpg, Configuration D Note: Defining these 4 configuration results in any o
1. Path:/etc/nginx/nginx.conf and/ETC/NGINX/CONF.D,In fact, only/etc/nginx/nginx.conf this one configuration file, because in nginx.conf, other configuration files can be used by the include directive • introducedSome configuration files:Server {Listen the; server_name test.net; Root/var/www/test; #include none.conf; #error_page404/4
Tags: style blog http color io os ar sp divToday, the integration of phpMyAdmin under CentOS Error, error prompts as follows:Error during session start; Please check your PHP and/or webserver log file and configure your PHP installation properly. Also Ensure that cookie is enabled in your browser.Turn around on Google, find the answer you want, and write it down deliberately.Open in PHP.iniSession.save_path = "/var/lib/php/session/"Original:Http://sta
The equals type (=) has the highest precedence. Once the match succeeds, no other matches are found.
An ^~ type expression. Once the match succeeds, no other matches are found.
The priority of the regular expression type (~ ~*). If more than one location has a regular match, the longest regular expression will be used.
The regular string match type. Match by prefix.
Example-Fake address mask true addressserver { # 用 xxoo_admin 来掩饰 admin location / { # 使用br
Wrote a 301 redirect rules, the results of the above error, the original Nginx syntax detection is particularly strict, if and the following parentheses and variable equals the elements must have spaces, so the correct wording is to write a 301 redirect rules, the results reported above errors, the original Nginx syntax detection is particularly strict, If and after parentheses and variable equals, these el
Many friends in the first contact with Nginx, configuration php-fpm will encounter can not parse index.php page situation, make restless, thought clearly is according to the official documents why this situation occurs?
Usually we will configure as follows:
Location ~ \.php$ {Root/usr/share/nginx/html;fastcgi_pass 127.0.0.1:9000;fastcgi_index index.php;fastcgi_par Am script_filename/usr/share/
of one buffer, or the 414 (Request-uri Too Large) error is returned to the client. A Request header field cannot exceed the size of one buffer as well, or the the "Bad Request" error is returned to the CLI Ent. Buffers is allocated only on demand. By default, the buffer size is equal to 8K bytes. If after the end of request processing a connection was transitioned into the keep-alive state, these buffers is released.
The reason to control the cache size with two parameters is to balance the co
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.