On Tue, Feb 10, 2009 at 8:11 PM, djandrow <andrewkenyon...@gmail.com> wrote:
>
> I've move it just to the apache2.2 file so my conf is now:
>
> Options Indexes FollowSymLinks
>
> <Location "/akonline/">
>    SetHandler python-program
>    PythonHandler django.core.handlers.modpython
>    SetEnv DJANGO_SETTINGS_MODULE akonline.settings
>    PythonOption django.root /akonline
>    PythonDebug On
>    PythonPath "['C:/Program Files/Apache2.2'] + sys.path"
> </Location>
>
> <Directory "C:/Program Files/Apache2.2/akonline/templates/blogSite/
> media/">
>        Order Allow,Deny
>        Allow from all
>        SetHandler None
> </Directory>
>
> Alias /media/ "C:/Program Files/Apache2.2/akonline/templates/blogSite/
> media/"
>
> <LocationMatch "\.(jpg|gif|png|css)$">
>        SetHandler None
> </LocationMatch>
>
> But i'm still having the same problems
>

One think I'm realizing now is that you haven't realy  told us what the problem
is in the first place, and I haven't asked for it :)

I've just tested a similar setup and it is working for me. I tested it
by accessing the http://myhost/media/feedicon.png URL
and the image is shown in my browser.

Something very helpful in these cases is to look what the Web server
reports in its logs (some common filenames for Apache are
access.log and error.log). For example, this is what is shown
for the  above request and for another failed one (a non-existent
foo.gif file, in this last case it gives a clear hing about what paths it's
trying to examine in oder to to server the resource):

access.log:

192.168.190.2 - - [11/Feb/2009:15:07:07 -0200] "GET
/media/feedicon.png HTTP/1.1" 200 9076 "-" "Mozilla/5.0 (X11; U; Linux
i686; en-US; rv:1.9.0.6) Gecko/2009020409 Iceweasel/3.0.6
(Debian-3.0.6-1)"

192.168.190.2 - - [11/Feb/2009:15:13:00 -0200] "GET /media/foo.gif
HTTP/1.1" 404 211 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US;
rv:1.9.0.6) Gecko/2009020409 Iceweasel/3.0.6 (Debian-3.0.6-1)"

error.log:

[Wed Feb 11 15:13:00 2009] [error] [client 192.168.190.2] File does
not exist: /var/djapps/dtests/templates/blogSite/media/foo.gif


-- 
 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to