On Wed, Feb 18, 2009 at 4:08 PM, PeteDK <petermoel...@gmail.com> wrote: > > Hi. I know this is not really Django related, but this is one of the > best forums out there so i hope you can help me :-) > > The thing is, i have a django website. > > The media files are handled by the apache server instead of django, > which works great. > > However when i go to xxxx.com/media/profile_pics/ i get a directory > listing of all the folders in this directory. > > Can i disable this?? so its not possible to "browse" all the profile > pics, without knowing the exact path of a given file.
You can disable Apache mod_autoindex http://httpd.apache.org/docs/2.2/mod/mod_autoindex.html for that directory. But the easiest way to avoid the generation of the directory content listing is simply creating an empty index.html file there. -- Ramiro Morales --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---