View Issue Details

IDProjectCategoryView StatusLast Update
0002542GNUnettransport servicepublic2024-05-03 14:01
ReporterMatthias Wachs Assigned ToMatthias Wachs  
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionfixed 
Product VersionGit master 
Target Version0.9.4Fixed in Version0.9.4 
Summary0002542: HTTP reverse proxy and nginx
DescriptionSome facts about http reverse proxying and nginx
TagsNo tags attached.

Activities

Matthias Wachs

2012-09-11 11:18

reporter   ~0006331

location /gnunet/
    {
     proxy_pass http://fulcrum.net.in.tum.de:8080/;
     proxy_buffering off;
     proxy_connect_timeout 20; # more than http_server
     proxy_read_timeout 350; # 60 default, 300s is GNUnet's idle timeout
     proxy_http_version 1.1; # 1.0 default
     
     
     proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
     
     #proxy_redirect off;
     #proxy_set_header Host $host;
     #proxy_set_header X-Real-IP $remote_addr;
     #proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
   }

Matthias Wachs

2012-09-11 11:19

reporter   ~0006332

Sigh...


Sep 11 11:17:44-741661 transport-http_client-14357 DEBUG Connection 0x6dd0ad0 HEADER_OUT: PUT /gnunet//12IGH6VGE94UK92NBKBI08O3KNJHQEKAVVV26I3TM1GE9TKUFUEONMV47BAUDHFF0TGVV03HB2VGAFAIB9B7VI8M0UF79T7UKMCLST8;1 HTTP/1.1
Host: fulcrum.net.in.tum.de
Accept: */*
Transfer-Encoding: chunked
Expect: 100-continue

Sep 11 11:17:44-759939 transport-http_client-14357 DEBUG Connection 0x6dd0ad0 HEADER_IN: HTTP/1.1 411 Length Required
Sep 11 11:17:44-761703 transport-http_client-14357 DEBUG Connection 0x6dd0ad0 HEADER_IN: Server: nginx/1.1.19
Sep 11 11:17:44-761889 transport-http_client-14357 DEBUG Connection 0x6dd0ad0 HEADER_IN: Date: Tue, 11 Sep 2012 09:17:44 GMT
Sep 11 11:17:44-764416 transport-http_client-14357 DEBUG Connection 0x6dd0ad0 HEADER_IN: Content-Type: text/html
Sep 11 11:17:44-766074 transport-http_client-14357 DEBUG Connection 0x6dd0ad0 HEADER_IN: Content-Length: 181
Sep 11 11:17:44-767872 transport-http_client-14357 DEBUG Connection 0x6dd0ad0 HEADER_IN: Connection: close
Sep 11 11:17:44-771521 transport-http_client-14357 DEBUG Connection 0x6dd0ad0 HEADER_IN:

Matthias Wachs

2012-09-11 11:19

reporter   ~0006333

Last edited: 2012-09-11 11:20

No chunked encoding supported...

Next step: http://wiki.nginx.org/HttpChunkinModule#Installation

Behind the scene, it registers an access-phase handler that will eagerly read and decode incoming request bodies when a Transfer-Encoding: chunked header triggers a 411 error page in Nginx. For requests that are not in the chunked transfer encoding, this module is a "no-op".

Matthias Wachs

2012-09-11 11:35

reporter   ~0006334

On ubuntu: apt-get install nginx-extra

    chunkin on;
    error_page 411 = @my_411_error;
    location @my_411_error {
        chunkin_resume;
    }
    
Before: as apache

Matthias Wachs

2012-09-19 12:59

reporter   ~0006363

Reverse proxying with nginx is working with revision 23895

Issue History

Date Modified Username Field Change
2012-09-11 11:11 Matthias Wachs New Issue
2012-09-11 11:11 Matthias Wachs Status new => assigned
2012-09-11 11:11 Matthias Wachs Assigned To => Matthias Wachs
2012-09-11 11:18 Matthias Wachs Note Added: 0006331
2012-09-11 11:19 Matthias Wachs Note Added: 0006332
2012-09-11 11:19 Matthias Wachs Note Added: 0006333
2012-09-11 11:20 Matthias Wachs Note Edited: 0006333
2012-09-11 11:35 Matthias Wachs Note Added: 0006334
2012-09-19 12:59 Matthias Wachs Note Added: 0006363
2012-09-19 13:00 Matthias Wachs Status assigned => resolved
2012-09-19 13:00 Matthias Wachs Resolution open => fixed
2012-10-06 16:36 Christian Grothoff Product Version => Git master
2012-10-06 16:36 Christian Grothoff Fixed in Version => 0.9.4
2012-10-06 16:36 Christian Grothoff Target Version => 0.9.4
2012-11-05 18:33 Christian Grothoff Status resolved => closed
2024-05-03 14:01 Christian Grothoff Category HTTP transport => transport service