Opened 6 years ago

Closed 6 years ago

Last modified 5 years ago

#1099 closed defect (invalid)

proxy_http_version 1.1 is ignored for incoming https request

Reported by: progman97@… Owned by:
Priority: critical Milestone:
Component: nginx-module Version: 1.10.x
Keywords: reverse proxy, https, proxy_http_version Cc:
uname -a: Linux 3.19.0-25-generic #26~14.04.1-Ubuntu SMP Fri Jul 24 21:18:00 UTC 2015 i686 i686 i686 GNU/Linux
nginx -V: nginx/1.10.1


I have the same proxy settings for the http and the https server section. The https sends only http 1.0 header upstream to the backend. I have reserched this, but in case this was not a bug, please provide me a working cfg.

Attachments (1)

default (3.7 KB ) - added by progman97@… 6 years ago.

Download all attachments as: .zip

Change History (7)

by progman97@…, 6 years ago

Attachment: default added

comment:1 by Maxim Dounin, 6 years ago

Resolution: invalid
Status: newclosed

You configuration does not have proxy_http_version directive in the https server, so nginx uses the default - HTTP/1.0.

Please use the mailing list for further questions. Thank you.

comment:2 by progman97@…, 6 years ago

Resolution: invalid
Status: closedreopened

Please look again, it is there:

location /datasets {

# Default is HTTP/1, keepalive is only enabled in HTTP/1.1

proxy_http_version 1.1;

I am a developer who understands the process, would not come here for any other reason than bug report. I have spent many ours surfing the web to see if there is something I may have missed, before creating this ticket. I also completely purged nginx to make sure I have a proper install and the latest available version. Please take this as seriously as I do.

comment:3 by progman97@…, 6 years ago

Maybe the fact the incoming request is https but it is forwarded as http has something to do with it.

comment:4 by Maxim Dounin, 6 years ago

Resolution: invalid
Status: reopenedclosed

The only place where proxy_http_version is specified is the /datasets location in the non-https server. There is no proxy_http_version directive in the https server. Please re-read your configuration.

As previously suggested, please use the mailing list if you have any further questions. Thank you.

comment:5 by progman97@…, 6 years ago

This is strange: I had kept the "SitesEnabled/default" file open in leafpad editor (ran as root) for a while. Saved the file a couple of times and there was never any error. But after closing the editor and opening the file again all changes were gone. The file I have sent you was not what I saw on screen and I thought to be. You were perfectly right, proxy_http_version was missing. It works now.

I am so terribly sorry for wasting your time.

Last edited 6 years ago by progman97@… (previous) (diff)

comment:6 by Maxim Dounin, 5 years ago

sensitive: 10
Note: See TracTickets for help on using tickets.