Hi,
> But I'm buggered if I know how to write that in the nginx.conf file.
>
> I've tried alot of different variations on this theme
>
> server {
> listen 80;
> server_name websiteurl;
> index index.html;
> root /oath/to/djangoproject/top/folder;
> location /media/ {
> root
> /path/to/folder/that/contains/files/in/static/folders/;
> }
I know you already got this working, but you could also just change
the above line to:
location ~ ^/media/ {
root /path/to/folder/that/contains/files/in/static/folders/;
expires 30d;
}
-Rajesh D
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---