https://github.com/jas0n0ss/httpcode-html
http code html page.
https://github.com/jas0n0ss/httpcode-html
401-page 401-unauthorized 403-forbidden 403-page 404-page
Last synced: 4 months ago
JSON representation
http code html page.
- Host: GitHub
- URL: https://github.com/jas0n0ss/httpcode-html
- Owner: Jas0n0ss
- Created: 2023-03-14T12:41:39.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-14T13:06:44.000Z (about 2 years ago)
- Last Synced: 2024-12-31T15:26:14.565Z (5 months ago)
- Topics: 401-page, 401-unauthorized, 403-forbidden, 403-page, 404-page
- Language: HTML
- Homepage: https://oss.msft.vip/httpcode-html/
- Size: 12.7 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# httpcode-page
###### This is some of my customized html for http code, like `401` `403` `404` ...
Nginx:
```nginx
server {
listen 80;
server_name localhost;
charset utf-8;location / {
root html;
random_index off;
index index.html index.htm;
if ($geoip_country_code != CN) {
return 403;
}
}error_page 404 /404.html;
error_page 401 /401.html;
error_page 403 /403.html;# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
``````bash
08:55:10 root@homesrv html → tree .
.
├── 401.html
├── 403.html
├── 404.html
├── 50x.html
├── img
│ └── wallhaven-Ocean.jpg
└── index.html
```Below is some examples:
---




License @MIT