可以這樣做~~
重啟 Nginx 就可以了~~
加上紅色的段落~~
QUOTE:
server {
error_page 404 /404.html;
location /404.html {
internal;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_intercept_errors on;
}
}
重啟 Nginx 就可以了~~
如果你想自訂 404.html 的頁面...讓每個 Error Page 都跳轉回首頁...可以將 404.html 修改成如下:
QUOTE:
<html>
<head>
<meta http-equiv="refresh" content="0; url=./">
<title></title>
</head>
</html>