nginx-configuration-examples:很酷的 Nginx 配置示例

时间:2021-06-11 11:31:40
【文件属性】:
文件名称:nginx-configuration-examples:很酷的 Nginx 配置示例
文件大小:5KB
文件格式:ZIP
更新时间:2021-06-11 11:31:40
Shell Nginx 配置示例 特征 维护模式 当文件/usr/share/nginx/html/maintenance-mode存在时,Nginx 会返回/usr/share/nginx/html/maintenance.html的内容以及状态码503 (服务暂时不可用)。 可以通过以下 HTTP 请求启用维护模式: curl -XPUT -u czerasz:password1234567890 localhost/maintenance-mode -d '' 可以使用以下 HTTP 请求禁用维护模式: curl -XDELETE -u czerasz:password1234567890 localhost/maintenance-mode 测试 要测试配置,请运行以下帮助程序脚本: ./bin/test.sh 该脚本基于容器内的运行测试。 有用的命令 重新加载 Nginx
【文件预览】:
nginx-configuration-examples-develop
----Dockerfile(918B)
----README.md(1KB)
----bin()
--------test.sh(565B)
----Changes.md(65B)
----test()
--------nginx.bats(3KB)
----config()
--------htpasswd(46B)
--------maintenance-page.conf(852B)
--------nginx.conf(1KB)

网友评论