WebFaction
Community site: login faq

Greetings,

I have Django app for which I want to compress (gzip) static files and insert custom headers which are currently served with webfaction static app. I read on forums (and got answer from the staff) that in order to do so, I need to build & run custom nginx static application. I want to keep Apache running Django app. So far I was unsuccessful so I would appreciate if somebody could share nginx (and apache if necessary) configuration file which would serve static files on https.

Zdenko

asked 22 Jul '15, 23:42

zdenulo's gravatar image

zdenulo
134
accept rate: 0%

Is your intention to run this behind the server's front-end Nginx server, or for the custom nginx to handle the https traffic directly?

(23 Jul '15, 05:33) ryans ♦♦ ryans's gravatar image

I admit I don't understand exactly your question. My goal is that existing Apache server serve Django app as it is doing now and static files are served with my custom nginx, not webfaction's nginx via static app. all should handle https traffic. This is my goal, if it's possible to do it like that. I don't have experience with configuring nginx.

(23 Jul '15, 07:48) zdenulo zdenulo's gravatar image

It won't be possible to do this. It's easy enough to build Nginx (or use an Nginx installed from our control panel) and configure it as you like, but it will still run behind our front-end Nginx server. The front-end Nginx server disables gzip for all HTTPS traffic, to mitigate the BREACH vulnerability.

permanent link

answered 23 Jul '15, 17:54

seanf's gravatar image

seanf ♦♦
11.7k21333
accept rate: 37%

I see :(. Thanks for clarification.

(23 Jul '15, 18:53) zdenulo zdenulo's gravatar image

You can now selectively enable and disable gzip compression for HTTPS websites via our control panel at:

https://my.webfaction.com/websites

permanent link

answered 25 May, 16:15

seanf's gravatar image

seanf ♦♦
11.7k21333
accept rate: 37%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×882
×183
×82

question asked: 22 Jul '15, 23:42

question was seen: 1,662 times

last updated: 25 May, 16:15

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2016 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM