I've followed Graham's simple configuration instructions for hosting static files along with a wsgi application mounted at the domain root. And in fact, my site is working.
However, requests for static pages are being handled twice. Apache responds with the static content, but the wsgi app is also receiving the request. For example, a browser request to "myApp.domain.com/static/test.js" shows the test.js file contents in the browser, but the wsgi app is also invoked with "static/test.js" as the path.
Relevant Apache Configuration:
LoadModule wsgi_module modules/mod_wsgi.so WSGISocketPrefix /var/run/wsgi <VirtualHost *:80> DocumentRoot /var/www/myApp ServerName myApp.domain.com Alias /static/ /var/www/myApp/static/ <Directory /var/www/myApp/static> Order deny,allow Allow from all </Directory> WSGIScriptAlias / /var/www/myApp/app.wsgi <Directory /var/www/myApp> Order allow,deny Allow from all </Directory> WSGIDaemonProcess myAppName processes=1 WSGIProcessGroup myAppName </VirtualHost>
What do I need to change in my apache configuration to prevent request at myApp.domain.com/static/ from being passed to the wsgi application? Hopefully I just have a typo somewhere...
Edit: Can no longer reproduce this behavior.