add 404 page nginx config
This commit is contained in:
parent
47956ee86b
commit
03a94de7f5
1 changed files with 12 additions and 0 deletions
12
nginx.conf
Normal file
12
nginx.conf
Normal file
|
@ -0,0 +1,12 @@
|
|||
server {
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server;
|
||||
root /var/www/html;
|
||||
index index.html index.htm index.php;
|
||||
error_page 404 = /404.html;
|
||||
location ~ \.php$ {
|
||||
fastcgi_pass 127.0.0.1:9000;
|
||||
fastcgi_index index.php;
|
||||
include fastcgi.conf;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue