title: Can I run PHP and Python on the same Apache server using mod_vhost_alias and mod_wsgi?
body: <p>I currently run my own server "in the cloud" with PHP using mod_fastcgi and mod_vhost_alias.  My mod_vhost_alias config uses a VirtualDocumentRoot of /var/www/%0/htdocs so that I can serve any domain that routes to my server's IP address out of a directory with that name.</p>
  
  <p>I'd like to begin writing and serving some Python projects from my server, but I'm unsure how to configure things so that each site has access to the appropriate script processor.</p>
  
  <p>For example, for my blog, dead-parrot.com, I'm running a PHP blog platform (Habari, not WordPress).  But I'd like to run an app I've written in Flask on not-dead-yet.com.  </p>
  
  <p>I would like to enable Python execution with as little disruption to my mod_vhost_alias configuration as possible, so that I can continue to host new domains on this server simply by adding an appropriate directory.  I'm willing to alter the directory structure, if necessary, but would prefer not to add additional, specific vhost config files for every new Python-running domain, since apart from being less convenient than my current setup with just PHP, it seems kind of hacky to have to name these earlier alphabetically to get Apache to pick them up before the single mod_vhost_alias vhost config.</p>
  
  <p>Do you know of a way that I can set this up to run Python and PHP side-by-side as conveniently  as I do just PHP?  Thanks!</p>