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".
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.
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 %} t/foo.js" ></script> t/bar.js" ></script>
<script src="/javascrip
<script src="/javascrip
{% 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.