Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Server \ Customize the 404 error page Nginx     - Linux system security configuration (Linux)

- Linux three ways to set environment variables (Linux)

- How to use Xmanager Remote Desktop and VNC Log (Linux)

- CentOS 6.5 platform offline compile and install PHP5.6.6 (Server)

- PHP parsing algorithm of the interview questions (Programming)

- Ubuntu installation under Scrapy (Linux)

- Distributed File System FastDFS deployment (Server)

- Neo4j map data processing tab (Database)

- Nginx supports user multi-threaded downloads and resume broken (Server)

- The next key to install Linux bash script PowerShell (Linux)

- ActiveMQ-based shared file system HA solutions (Server)

- DB2 manually create a library (Database)

- Easy to get hidden administrator account (Linux)

- C ++ 11 feature: auto keyword (Programming)

- CentOS5 installation Nodejs (Linux)

- Linux uses shared memory communication process synchronization Withdrawal (Programming)

- Ubuntu uses conky add desktop control (Linux)

- An Example of GoldenGate Extract Process Hang Problem Solving (Database)

- NaSC using simple mathematical operations on Ubuntu and Elementary OS (Linux)

- DataGuard Standby backup error RMAN-06820 ORA-17629 to solve (Database)

  Customize the 404 error page Nginx
  Add Date : 2018-11-21      
  A custom error page

Under 1. Create a 404 error page on the web root directory
12 vim 404.html
welcome, my name is 404

2. http {nginx.conf file} defining area added:

fastcgi_intercept_errors on;

This command is used to decide whether the client turned 4xx and 5xx error page,

3.error_page command to specify the error page, you can http {}, server {} Add

error_page 404 = /404.html;

error_page command syntax:

error_page 502 503 504 /50x.html; # 502,503,504 If you encounter an error status code, the display file contents /50.html
error_page 403 http://example.com/forbidden.html;# encounter 403 errors, jump to the specified url address
error_page 404 = 200 /empty.gif; # 404 encountered an error status code, the status code to 200, and displays the contents of the documents to the client

Custom error page summary:
You must add fastcgi_intercept_errorson; the
Custom 404 page larger than 512 bytes must be, otherwise there will be IE the default 404 page
- Why everybody ought to know LLVM (Linux)
- Oracle 11G using DG Broker create DataGuard (Database)
- Build Python3.4 + PyQt5.5.1 + Eric6.1.1 development platform under Mac OS X 10.11.1 (Server)
- Repair Raspbian Encountered a section with no Package (Linux)
- TPCC-MySQL Benchmark (Database)
- MongoDB uses aggregate, group, match mysql achieve in having (count (1)> 1) features (Database)
- Open source backup software installed on Ubuntu Systemback 1.6.201 (Linux)
- Analyzing Linux server architecture is 32-bit / 64-bit (Server)
- Hadoop new and old version of the difference in the size of the InputSplit (Server)
- Lua and C ++ (Programming)
- Linux mention the right notes (Linux)
- Java interface and inheritance (Programming)
- Traffic monitor Linux Python Version (Programming)
- Smooth upgrade to OpenSSH 6.1 Procedure (Linux)
- learning Linux ls command examples (Linux)
- CentOS 6.5 system installation Oracle11.2.0.4 basic steps (Database)
- BCP importing and exporting large amounts of data Practice (Database)
- Live Wallpaper for Linux release adds dynamic background (Linux)
- MongoDB upgrade from 2.4.9 to 2.6.0 and PHP record of mongo extension upgrade from 1.4.5 to 1.5.1 (Database)
- Linux (RHEL6 CENTOS6 OLE6) VNC-SERVER Installation and Configuration (Server)
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.