https://github.com/nwtgck/nginx-internal-server-error-conf
Nginx configuration to always return "500 Internal Server Error"
https://github.com/nwtgck/nginx-internal-server-error-conf
nginx nginx-configuration
Last synced: 12 months ago
JSON representation
Nginx configuration to always return "500 Internal Server Error"
- Host: GitHub
- URL: https://github.com/nwtgck/nginx-internal-server-error-conf
- Owner: nwtgck
- Created: 2018-08-28T13:04:03.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-29T21:48:50.000Z (almost 8 years ago)
- Last Synced: 2025-02-06T13:29:57.482Z (over 1 year ago)
- Topics: nginx, nginx-configuration
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nginx-internal-server-error-conf
Nginx configuration to always return "500 Internal Server Error"
## Usage
```bash
docker run -it -p 8081:80 -v $PWD/default.conf:/etc/nginx/conf.d/default.conf nginx
```
Then, you can access to and have 500 Internal Server Error page on your browser.
or
You can use `curl` command.
```bash
$ curl -i localhost:8081
HTTP/1.1 500 Internal Server Error
Server: nginx/1.15.2
Date: Tue, 28 Aug 2018 13:01:45 GMT
Content-Type: text/html
Content-Length: 193
Connection: close
500 Internal Server Error
500 Internal Server Error
nginx/1.15.2
```