I need some advice on configuring a separate media server for our jpeg images.
We are running Django on Apache 2.2 with mod_python 3.2.10 (python2.5) on a Windows 2003 server. As recommended in the docs, I am setting up a separate web server to serve the media. I've installed Lighttpd 1.4.13 and both servers are working fine, serving web pages. Django runs on the Apache and Admin is working correctly with it's media. However, I can't seem to get an simple image to display through a Django template. I've tried all sorts of combinations and can't seem to make any headway. Any advice welcome. Details of my settings etc. below. Template call is simply: <img src="gobites.jpg"> ------------------------------------------- Apache httpd.conf settings are: <Location "/project/"> SetHandler python-program PythonPath "['D:/project'] + sys.path" PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE project.settings PythonDebug On PythonAutoReload On </Location> <Location "/admin/"> SetHandler python-program PythonPath "['D:/project'] + sys.path" PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE project.settings PythonDebug On </Location> <Directory "D:/Python25/Lib/site-packages/django/contrib/admin/media"> AllowOverride None Options None Order allow,deny Allow from all </Directory> <Directory "D:/project/media"> AllowOverride None Options None Order allow,deny Allow from all </Directory> Alias /admin-media "D:/Python25/Lib/site-packages/django/contrib/admin/media" Alias /media "D:/project/media" <Location "/media/"> SetHandler none </Location> <Location "/admin-media/"> SetHandler none </Location> <LocationMatch "\.(jpg|gif|png)$"> SetHandler None </LocationMatch> ------------------------------------------------ DJANGO settings.py are: MEDIA_ROOT = "d:/project/media/" MEDIA_URL = "http://192.168.1.9:3000/" - url to Lighttpd server ADMIN_MEDIA_PREFIX = '/admin-media/' ---------------------------------------------------- LIGHTTPD (lighttpd.conf) settings are: server.document-root = "d:/project/media/" server.port = 3000 --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---