﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
6593	Fastcgi/apache documentation could be simplified	n00bish	nobody	"I did not have any luck with the documentation at http://www.djangoproject.com/documentation/fastcgi/ to configure fastcgi for django.  

Your code is as below:
{{{
<VirtualHost 12.34.56.78>
  ServerName example.com
  DocumentRoot /home/user/public_html
  Alias /media /home/user/python/django/contrib/admin/media
  RewriteEngine On
  RewriteRule ^/(media.*)$ /$1 [QSA,L,PT]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^/(.*)$ /mysite.fcgi/$1 [QSA,L]
</VirtualHost>
}}}

I had solved the problem in many fewer lines with less effort by doing this:


{{{
<Location ""/"">
        RewriteEngine On
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule /(.*) /mysite.fcgi/$1 [QSA,L]
</Location>
}}}
While the above obviously selects for every url below root you can customize the regular expression, especially if your code is under a subdirectory, to select only the pertinent URLs for rewriting.

The above was placed in my httpd.conf, and the 
{{{
FastCGIExternalServer /home/user/public_html/mysite.fcgi -host 127.0.0.1:3033
}}}
code was placed just below it.

You could add in the /media rewrite rule that exists already for your host, if you so desired.  This is a simpler, painless method.  The method you described actually did not work for me, so posting this as an alternative could help many.  If you need more information or a clearer description, feel free to contact me.
"		closed	Documentation	dev		worksforme			Unreviewed	0	0	0	0	0	0
