small medium large xlarge

07 Sep 2008, 23:27
Greg Sterndale (1 post)

Following Recipe 68, “Flip On SSL” I configured nginx to server up encrypted content. Unfortunately I ran into an odd problem where prototype.js (and other large files) weren’t loading completely when requested via https. After some research I found that the default gzip buffer size was too small.

My nginx config file now looks like this:

… server { gzip_buffers 16 8k; … location / { proxy_set_header X_FORWARDED_PROTO https; … } }

I hope this will save someone a few minutes.

You must be logged in to comment