FastCGIExternalServer /var/www/run/myapp.fcgi -socket /var/www/run/myapp.sock # start it with: /etc/init.d/MyApp start # better, configure under monit ServerAdmin me@mydomain.com ServerName virthostname.org ServerAlias www.virthostname.org ErrorLog /var/log/httpd/myapp_error_log TransferLog /var/log/httpd/myapp_access_log DocumentRoot /var/www/MyApp Alias /static /var/www/MyApp/root/static Alias / /var/www/run/myapp.fcgi/ Options Indexes FollowSymLinks ExecCGI AllowOverride All allow from all SetHandler default-handler RewriteEngine On # Rewrite known static files to /static/ RewriteRule ^/favicon.ico /static/favicon.ico [L,R] RewriteRule ^/robots.txt /static/robots.txt [L,R]