项目作者: afeiship

项目描述 :
Custom Bad Gateway Pages.
高级语言: HTML
项目地址: git://github.com/afeiship/bad-gateway-pages.git
创建时间: 2020-11-14T03:56:20Z
项目社区:https://github.com/afeiship/bad-gateway-pages

开源协议:MIT License

下载


bad-gateway-pages

Custom Bad Gateway Pages.

@jswork/bad-gateway-pages"">version
license
size
@jswork/bad-gateway-pages"">download

installation

  1. npm install -S @jswork/bad-gateway-pages

usage

  1. #site-wide error pages
  2. server {
  3. listen 80 default_server;
  4. listen [::]:80 default_server ipv6only=on;
  5. set $bad_gataway_pages "/YOUR_PATH/node_modules/@jswork/bad-gataway-pages/dist";
  6. error_page 404 /404.html;
  7. location = /404.html {
  8. root $bad_gataway_pages;
  9. internal;
  10. }
  11. error_page 410 /410.html;
  12. location = /410.html {
  13. root $bad_gataway_pages;
  14. internal;
  15. }
  16. error_page 500 502 503 504 /502.html;
  17. location = /502.html {
  18. root $bad_gataway_pages;
  19. internal;
  20. }
  21. }

resources

license

Code released under the MIT license.