Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/afeiship/bad-gateway-pages
Custom Bad Gateway Pages.
https://github.com/afeiship/bad-gateway-pages
404 500 502 apache bad empty error gateway nginx page php static
Last synced: 17 days ago
JSON representation
Custom Bad Gateway Pages.
- Host: GitHub
- URL: https://github.com/afeiship/bad-gateway-pages
- Owner: afeiship
- License: mit
- Created: 2020-11-14T03:56:20.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2020-11-25T02:07:04.000Z (almost 4 years ago)
- Last Synced: 2024-04-25T08:02:53.039Z (7 months ago)
- Topics: 404, 500, 502, apache, bad, empty, error, gateway, nginx, page, php, static
- Language: HTML
- Homepage:
- Size: 35.2 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# bad-gateway-pages
> Custom Bad Gateway Pages.[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]## installation
```shell
npm install -S @jswork/bad-gateway-pages
```## usage
```conf
#site-wide error pages
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;set $bad_gataway_pages "/YOUR_PATH/node_modules/@jswork/bad-gataway-pages/dist";
error_page 404 /404.html;
location = /404.html {
root $bad_gataway_pages;
internal;
}error_page 410 /410.html;
location = /410.html {
root $bad_gataway_pages;
internal;
}error_page 500 502 503 504 /502.html;
location = /502.html {
root $bad_gataway_pages;
internal;
}
}
```## resources
- https://stackoverflow.com/questions/7796237/custom-bad-gateway-page-with-nginx
- https://www.digitalocean.com/community/tutorials/how-to-configure-nginx-to-use-custom-error-pages-on-ubuntu-14-04## license
Code released under [the MIT license](https://github.com/afeiship/bad-gateway-pages/blob/master/LICENSE.txt).[version-image]: https://img.shields.io/npm/v/@jswork/bad-gateway-pages
[version-url]: https://npmjs.org/package/@jswork/bad-gateway-pages[license-image]: https://img.shields.io/npm/l/@jswork/bad-gateway-pages
[license-url]: https://github.com/afeiship/bad-gateway-pages/blob/master/LICENSE.txt[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/bad-gateway-pages
[size-url]: https://github.com/afeiship/bad-gateway-pages/blob/master/dist/bad-gateway-pages.min.js[download-image]: https://img.shields.io/npm/dm/@jswork/bad-gateway-pages
[download-url]: https://www.npmjs.com/package/@jswork/bad-gateway-pages