: This article describes how to set up the 404 page for PHP projects in a unified manner (including the yii Framework). If you are interested in the PHP Tutorial, refer to it. 1. create a custom 404 page using Apache + PHP.
First, you can use
404 error, many people know that if you want to access the URL does not exist when you read the display of this page. In the past in dealing with 404 aspects of our usual practice is to write a few lines of words, and the interested people may be a
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.
Nginx is a high-performance and concurrent server software, which is slightly more complicated than apache in configuration.A locally deployed thinkphp framework, when deployed to the server, throws a 404 error due to permission issues at first, and
In Windows, Apache + Tomcat + MySQL + jsp + php server integration configuration-Linux Enterprise Application-Linux server application information. The following is a detailed description. [I = s] This post was last edited by shuming at, January 29 ,
The example explains how to handle errors and exceptions in the PHP Yii Framework, and the example explains yii. The example explains how to handle errors and exceptions in the PHP Yii Framework. The example explains that yiiYii has implemented
What kind of network protocol does 1.nginx use?
Nginx is the application layer I think from the bottom up, the transport layer uses the TCP/IP application layer for HTTP
FastCGI is responsible for the scheduling process
2. ? echo ' Hello
This article mainly introduces how to handle errors and exceptions in the PHP Yii Framework, and focuses on how to use the Error Processor, if you need it, you can refer to Yii that has implemented exception and error toggle on CApplication by
By default, Yii has implemented exceptions and errors on CApplication. This is achieved through set_exception_handler and set_error_handler of php. Using these two built-in PHP functions, you can take over uncaptured exceptions and errors in the
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.