Comment 5 for bug 1162400

Revision history for this message
Adrian Wechner (adrian-wechner) wrote :

Question: why are you changing to gunicorn? what's the benefit?
Slim: that actually would have been even easier then to define file by file... with the django-static app, there is a call "slimall" and "endslimall".

Example:

{% slimall %}
<script src="/javascript/foo.js"></script>
<script src="/javascript/bar.js"></script>
{% endslimall %}

that will combine the files content and compress them. so you get less requests and smaller size. then question then is if you have a "compressor" installed. something like 'slimmer' => easy_install slimmer.

If that is all the idea you dont see any other necessary possible changes then I will create a new diff file for these changes.

for the apache conf file you need something like that:

<VirtualHost *:80>

   ...
   ...
   ...

    Alias /cache-forever /tmp/cache-forever

    <Directory /tmp/cache-forever>
        Order allow,deny
        Allow from all
    </Directory>

</VirtualHost>

HAProxy:

I am not sure, but I think that the HAProxy should change anything in the apache conf for this matter... except you want to handle the static file access directly with the HAProxy to safe redundancies. I guess as mentioned before that should work even witht he HAProxy.