Hi!
I have this problem:
I set up the site by the djangobook in apache config.
Everything is working but /img/ dir (media files) not.
I used the Location directive, but it isn't working for me.
After I set the DocumentRoot to point the docroot, I got 403 error.
For the root ("/") too.
Why???
The test site's settings are these:
ServerName localhost
ErrorLog logs/test-error.log
CustomLog logs/test-access.log common
<IfModule dir_module>
DirectoryIndex index
</IfModule>
<Location "/">
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE dvdbolt.settings
PythonPath "['c:/web/django/dvdbolt', 'c:/web/django/dvdbolt/
dvdbolt'] + sys.path"
PythonDebug On
#PythonOption django.root /dvdbolt
</Location>
DocumentRoot "c:/web/django/dvdbolt/dvdbolt/bolt/docroot/"
<Location "/img/">
SetHandler None
Order allow,deny
#Deny from all
</Location>
<Directory "c:/web/django/dvdbolt/dvdbolt/bolt/docroot/">
SetHandler None
Order allow,deny
#Deny from all
</Directory>
#<LocationMatch "\.(jpg|gif|png)$">
# SetHandler None
#</LocationMatch>
When I remove documentroot option from the I got the good result.
What's happened?
The apache server log is this:
[Wed Nov 12 17:48:16 2008] [error] [client 127.0.0.1] client denied by
server configuration: C:/web/django/dvdbolt/dvdbolt/bolt/docroot/
This directory is holding the /img directory with images.
What is the problem???
Thanks for your help:
dd
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---