Flash application deployment with mod_wsgi

I'm trying to deploy one of my flash applications to mod_wsgi on apache, but I'm having problems because apache is trying to solve SOME of the routes in the file system:

apache error_log:

[Mon Aug 06 19:18:38 2012] [error] [client ::1] File does not exist: 
/srv/http/webchat/src/_publish_message, referer: http://localhost:88/webchat/chat

I say "SOME of the routes" because authentication works (on "/") and redirects to "/ chat".

Access to the _publish_message route is through AJAX, like this (using jQuery):

function publish_message(e){
    e.preventDefault();
    $.post('/_publish_message', {'message': "user message taken from a text field"})
        .fail(Handler.publish_error);
}

The route "_sse_stream" is used as the URL for the event source.

These two do not work!

Virtual host configuration:

<VirtualHost *:88>
    ServerName webchat.dev

    WSGIDaemonProcess webchat user=http group=http threads=5
    WSGIScriptAlias /webchat /srv/http/webchat/src/webchat.wsgi
    WSGIScriptReloading On

    DocumentRoot /srv/http/webchat/src

    <Directory /srv/http/webchat/src>
        WSGIProcessGroup webchat
        WSGIApplicationGroup %{GLOBAL}
        Order deny,allow
        Allow from all
    </Directory>
</VirtualHost>

File webchat.wsgi:

import sys
sys.path.insert(0, '/srv/http/webchat/src')
from index import app as application

" ", mod_wsgi, . , , .

+5
1
+2

All Articles