server {
listen default_server;
listen [::]: default_server;
server_name _;
root /usr/share/nginx/html; # Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf; location / {
deny all;
} error_page 404 /404.html;
location = /40x.html {
} error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
相关文章
- Nginx:设置响应header的content-type
- IIS 6中mimemap属性的默认设置
- 设置eclipse默认用户名
- SQL Server中如何设置对列的权限
- 2020 8 20 隐藏Nginx版本号 在nginx 配置文件 的 http 内添加 server_tokens off;
- IDEA 设置默认浏览器
- Nginx一个server配置多个location
- 使用maven-compiler-plugin插件,在pom文件设置默认的jdk编译版本(以JDK1.8为例)
- mysql8与mysql5.7差异,导致timestamp时间戳设置默认值无效
- 谷歌浏览器设置默认,但是打不开外部超链接/点击超链接没反应