An open API service indexing awesome lists of open source software.

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"

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

```