You are not logged in.
I'm trying to integrate my nifty little Flash app with my Django app using Django-amf (which is pretty sweet) - the problem is that Flash doesn't allow cross-domain requests, so even though my static files tend to be happy coming from media.mysite.com, Flash isn't. As a result, I need to have Flash hang out on www.mysite.com. Unfortunately, I can't seem to get Apache to actually serve those files up - I just get a 500 Internal Server Error.
Here's what I'm doing:
I've got my httpd.conf file set up like so:
<VirtualHost *:2869>
ServerName www.mysite.com
ServerAlias www.mysite.com
DocumentRoot /home2/[user]/webapps/django/project
<Location "/">
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE project.settings
PythonPath "['/home2/[user]/webapps/django'] + sys.path"
PythonDebug On
</Location>
<Location "/media">
SetHandler none
</Location>
<Location "/flash">
SetHandler None
</Location>
Alias /media "/home2/[user]/lib/python2.4/django/contrib/admin/media"
Alias /flash "/home2/[user]/webapps/media/[mysite]/flash"
</VirtualHost>
So I should be able to access my flash files like so:
www.mysite.com/flash/whatever.swf - but I get the 500 Internal Server Error
media.mysite.com/mysite/flash/whatever.swf works fine...
any ideas/suggestions?
Offline
Aha! I've got it working now... turns out that by making an Alias to my webapps/media/ folder was the problem (presumably because it is handled by a different app?) - I've moved the files to just plain old /flash/ and made an alias to that location, and Bam! Good to go!
BTW - if you are interested in harnessing the power of Flash for your Django apps, check out Django-amf written by Tomohiro Otsuka, http://djangoamf.sourceforge.jp/index.php?DjangoAMF_en
Offline