Comment #20 on issue 2322 by mvanb...@gmail.com: Unable to post reviews
with post-review (0.3.4): can not log in into Reviewboard (1.6.1)
http://code.google.com/p/reviewboard/issues/detail?id=2322
Just to give some more info:
I'm running reviewboard fastcgi with the following command:
/usr/local/bin/python /usr/local/bin/rb-site manage /sites/domain/reviews
runfcgi socket=/sites/domain/reviews/tmp/fastcgi.sock
pidfile=/var/run/reviews.pid
and this is my apache config:
<IfModule mod_fcgid.c>
AddHandler fcgid-script .fcgi
</IfModule>
<IfModule mod_fastcgi.c>
AddHandler fastcgi-script .fcgi
FastCGIExternalServer "/sites/domain/reviews/htdocs/reviewboard.fcgi"
-socket "/sites/domain/reviews/tmp/fastcgi.sock"
</IfModule>
<VirtualHost *:80>
ServerName reviews.domain
DocumentRoot "/sites/domain/reviews/htdocs"
# Alias static media requests to filesystem
Alias /media "/sites/domain/reviews/htdocs/media"
Alias /errordocs "/sites/domain/reviews/htdocs/errordocs"
# Error handlers
ErrorDocument 500 /errordocs/500.html
<Directory "/sites/domain/reviews/htdocs">
AllowOverride All
Options -Indexes FollowSymLinks
Allow from all
</Directory>
# Direct all other requests to the fastcgi server
RewriteEngine on
<IfModule mod_fcgid.c>
RewriteRule ^/(media.*)$ /$1 [QSA,L,PT]
RewriteRule ^/(errordocs.*)$ /$1 [QSA,L,PT]
</IfModule>
<IfModule mod_fastcgi.c>
RewriteRule ^/(media.*)$ /$1 [QSA,L,PT]
RewriteRule ^/(errordocs.*)$ /$1 [QSA,L,PT]
</IfModule>
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ /reviewboard.fcgi/$1 [QSA,L]
</VirtualHost>
The content of the reviewboard.fcgi is:
#!/usr/local/bin/python
import os, sys
sys.path.insert(0, "/sites/domain/reviews/conf")
os.environ["DJANGO_SETTINGS_MODULE"] = "reviewboard.settings"
os.environ["PYTHON_EGG_CACHE"] = "/sites/domain/reviews/tmp/egg_cache"
os.environ["HOME"] = "/sites/domain/reviews/data"
from django.core.servers.fastcgi import runfastcgi
runfastcgi(method="threaded", daemonize="false")
Hope this helps.
--
You received this message because you are subscribed to the Google Groups
"reviewboard-issues" group.
To post to this group, send email to reviewboard-issues@googlegroups.com.
To unsubscribe from this group, send email to
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/reviewboard-issues?hl=en.