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 |
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. answered 23 Jul '15, 17:54 seanf I see :(. Thanks for clarification.
(23 Jul '15, 18:53)
zdenulo
|
You can now selectively enable and disable gzip compression for HTTPS websites via our control panel at: answered 25 May '17, 16:15 seanf |
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?
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.