项目作者: nwtgck

项目描述 :
Nginx configuration to always return "500 Internal Server Error"
高级语言:
项目地址: git://github.com/nwtgck/nginx-internal-server-error-conf.git
创建时间: 2018-08-28T13:04:03Z
项目社区:https://github.com/nwtgck/nginx-internal-server-error-conf

开源协议:

下载


nginx-internal-server-error-conf

Nginx configuration to always return “500 Internal Server Error”

Usage

  1. docker run -it -p 8081:80 -v $PWD/default.conf:/etc/nginx/conf.d/default.conf nginx

Then, you can access to http://localhost:8081 and have 500 Internal Server Error page on your browser.

or

You can use curl command.

  1. $ curl -i localhost:8081
  2. HTTP/1.1 500 Internal Server Error
  3. Server: nginx/1.15.2
  4. Date: Tue, 28 Aug 2018 13:01:45 GMT
  5. Content-Type: text/html
  6. Content-Length: 193
  7. Connection: close
  8. <html>
  9. <head><title>500 Internal Server Error</title></head>
  10. <body bgcolor="white">
  11. <center><h1>500 Internal Server Error</h1></center>
  12. <hr><center>nginx/1.15.2</center>
  13. </body>
  14. </html>