GithubHelp home page GithubHelp logo

xeron / gh-974-xeron Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 32 KB

Minimal app to reproduce https://github.com/nginx/unit/issues/974

Dockerfile 0.70% Ruby 75.12% JavaScript 3.20% CSS 1.83% HTML 18.37% Shell 0.77%

gh-974-xeron's Introduction

gh-974-xeron

This is a minimal app to reproduce nginx/unit#974.

How To

Build and run unit docker image with the app:

./build_and_start.sh

Test:

curl -v -H 'X-Forwarded-Proto: https' http://127.0.0.1:8080

Example response:

*   Trying 127.0.0.1:8080...
* Connected to 127.0.0.1 (127.0.0.1) port 8080
> GET / HTTP/1.1
> Host: 127.0.0.1:8080
> User-Agent: curl/8.4.0
> Accept: */*
> X-Forwarded-Proto: https
>
< HTTP/1.1 503 Service Unavailable
< Content-Type: text/html
< Server: Unit/1.31.0
< Date: Wed, 18 Oct 2023 18:43:56 GMT
< Content-Length: 54
<
<!DOCTYPE html><title>Error 503</title><p>Error 503.
* Connection #0 to host 127.0.0.1 left intact

Unit logs:

I, [2023-10-18T18:43:56.036992 #52]  INFO -- : [aa10945e-9671-4628-8670-b738f2e24c0e] Processing by PostsController#index as */*
I, [2023-10-18T18:43:56.039875 #52]  INFO -- : [aa10945e-9671-4628-8670-b738f2e24c0e]   Rendered layout layouts/application.html.erb (Duration: 2.1ms | Allocations: 560)
I, [2023-10-18T18:43:56.040169 #52]  INFO -- : [aa10945e-9671-4628-8670-b738f2e24c0e] Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms | Allocations: 777)
2023/10/18 18:43:56 [error] 52#52 [unit] #11: Ruby: Wrong header entry 'value' from application
2023/10/18 18:43:56 [error] 52#52 [unit] #11: Ruby: Failed to run ruby script

gh-974-xeron's People

Contributors

xeron avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.