配置
server {
listen 80 default;
server_name _;
error_page 403 /403.html;
location = /403.html {
root html;
}
location / {
return 403;
}
}
server {
listen 80;
server_name mayanan.cn;
location / {
root html;
index index.html index.htm;
}
error_page 404 /404.html;
location = /404.html {
root html;
}
}
标签:index,自定义,ip,server,404,html,403,location,跳转
From: https://www.cnblogs.com/mayanan/p/16727764.html