Discover how to fix 404 not found nginx, include the articles, news, trends, analysis and practical advice about how to fix 404 not found nginx on alibabacloud.com
, the URL is considered valid and will be indexed and included in the index database, so that the two different URLs have exactly the same content: Customize the contents of the 404 error page, which causes the replication Web page problem. Light is the search engine down the right, heavy will k off the site.
And exactly I found here on the server Nginx
Installed in the local virtual machine, and installed the LNMP environment, the installation is normal, boot is normal, but found the configuration number Nginx, open the PHP page prompt file not found, but access to the HTML page does not affect . On the internet to find all kinds of information, said let theFastcgi_param script_filename /script$fastcg
: This article mainly introduces the Nginx custom 404 page (configured in Linux). If you are interested in the PHP Tutorial, refer to it. 404 error is an easy-to-see error during WWW website access.
The most common error message is 404 not found. The setting of the
Today suddenly found a problem, the site set up a custom 404 page, showing is no problem, just return the status code is 200, rather than 404!!
To see my nginx configuration:
Nginx.conf
The code is as follows
server {
...
Error_page 404 =/
Error Log
Install nginx-1.0.5 and php-5.3.6 (php-fpm) Can't Wait To test info. php? Php phpinfo () ;?> ), However, only blank pages are returned and nothing is output. The following is an error log.
192.168.6.82--[01/Aug/2011: 13: 54: 20 + 0800] "GET/info. php HTTP/1.1 "404 5"-"" Mozilla/5.0 (X11; U; Linux x86_64; zh-CN; rv: 1.9.2.9) Gecko/20100827 Red Hat/3.6.9-2. el6 Firefox/3.6.9"
192.168.6.82--[01/Aug/
404 errors are errors that are prone to the WWW site access.
The most common error hint: 404 Not FOUND. 404 error page settings on the site SEO has a great impact, and improper settings, such as direct to jump home, etc., will be the search engine down the right to pull hair. 404
thinkphp nginx php-fpm url rewrite causes 404 error, Thinkphpnginx
thinkphp nginx php-fpm url rewrite cause 404 error
The previous thinkphp system was deployed on Apache, considering that the concurrency performance of Nginx was much more powerful than Apache, so the thinkp
Today, I have a title problem.Got a lot of information on the Internet.I finally found a way to solve my problem in this link.https://stackoverflow.com/questions/23443398/nginx-error-connect-to-php5-fpm-sock-failed-13-permission-denied/23596317This is a problem that may not be the case for everyone.I summed up the following two points, can be in these two directions to solve the problem:1. In the nginx.conf
thinkphp nginx php-fpm url rewrite cause 404 error
The previous thinkphp system was deployed on Apache, considering that the concurrency performance of Nginx was much more powerful than Apache, so the thinkphp system was redeployed in NGINX+PHP-FPM mode on CentOS, and the results
thinkphp nginx php-fpm url rewrite cause 404 error
thinkphp nginx php-fpm url rewrite cause 404 error
The previous thinkphp system was deployed on Apache, considering that the concurrency performance of Nginx was much more powerful than Apache, so the thinkphp system was re
are sent to/index.php/$1, and anyone familiar with the URL knows that a backslash (/) begins with a relative path, relative to whom? Root, which is the URL.
Originally to the site access to the URL is such to://URL/index.php?/controller/function, now want to remove index.php?, here index.php back also a question mark, good annoying, the results of the document was built, input URL access, reported Nginx 404
entire server's request to change the path, that is, from the "location ~ \.php" This beginning of the curly braces, the default nginxlocation wardrobe location ~ *\. (PHP|PHP5)? $ also to be changed. Include the first line of the location to be modified to the top. You can resolve the 500 server error "thinkphp 500 error" that was thrown
Nginx Run Error 404 error-File resolution not
read the other information, found that the configuration has a problem, according to the configuration, he simply forwarded the JSP page to Tomcat processing, but the registration page is not JSP, is an action request, so, did not transfer to Tomcat processing, the error 404. #location ~\.jsp${#proxy_pass http://127.0.0.1:8081;#} location/{ indexindex.htmlindex.htmindex.jsp; proxy_pass http://127.0.0.1:808
Just set up the LNMP environment, found that if my program is placed in a folder, and then Nginx agent when it will be 404;The Nginx configuration is as follows: # Pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # ~ \.php$ { root / home/morequ/morequ-wordpress;
The configuration is as follows: after {code...} takes effect, the following webpage dev. comu. php prompts: Filenotfound.dev.comabc.html returns the specified error page. How can this problem be solved? The configuration is as follows:
error_page 400 401 402 403 404 /40x.html;location = /40x.html { root /Library/WebServer/public_html/dev/;}
After the modification takes effect, visit the following webpage
Http://dev.com/u.php prompt: File not
The configuration is as follows:
error_page 400 401 402 403 404 /40x.html;location = /40x.html { root /Library/WebServer/public_html/dev/;}
After the entry into force, visit the following page
http://dev.com/u.php hint: File not found.
http://dev.com/abc.html returns the specified error page
Excuse me, how is this going to be solved?
Reply content:
The configuration is as follows:
er
Description
Favicon.ico occupy Nginx error_log log a lot of information, we really need to view the log to cover. So here we turn it off by log_not_found off.
Realize:
Put the following configuration into the server {} block, log logging when Favicon.ico is not present
= /favicon.ico {log_not_found off;access_log off;} //log_not_foundon| if , the default is on : Enable or disable 404 error log, this comm
After the configuration of Nginx, the PHP project put up, found that Css,js and pictures all access, has been redirected to the root directory to perform index.php, depressed on-line search for a half-day, the original different suffix file access to the nginx.conf in the Declaration of rules, such as the next,Location ~*. (Jpg|gif|png|js|css) $ {root E:\Project\PHP\mobao; if (-F $request _filename) {Expire
Read a lot on the internet, are said to be the problem of IIS, the key is to use the servlet can be normal access, using Nginx is not, and finally found that there are other problems, the solution is as follows:1. Verify that the configured path is correct, the path of the Nginx proxy, and the path you are accessing.2. Locate the corresponding server in the
When we have Nginx and FTP installation configuration has been basically done, we found that in the browser access to the file through the HTTP protocol is a 404 error.
Don't worry, you may just nginx the configuration file is not set up well. After the baby has integrated the various methods of the Internet, complete
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.