Comment #1 on issue 1618 by cki...@mindspring.com: unable to set on Ubuntu, keep getting 404 on all pages
http://code.google.com/p/reviewboard/issues/detail?id=1618

For Apache2 I found when converting from mod_python to fastcgi, that I had to change the reviewboard.fcgi script to get it to work correctly for 1.5beta2. I wasn't successful at getting lighttpd working so can't offer specific advice on that server.
My reviewboard.fcgi script with my changes:

<IfModule mod_fcgid.c>
        AddHandler fcgid-script .fcgi
</IfModule>
<IfModule mod_fastcgi.c>
        AddHandler fastcgi-script .fcgi

        FastCGIServer
"/home/test/ReviewBoard/Virtual/Test_RB1/htdocs/reviewboard.fcgi" -socket
"/home/test/ReviewBoard/Virtual/Test_RB1/tmp/fastcgi.sock"
</IfModule>
<VirtualHost *:80>
        ServerName testrb1.example.com
        DocumentRoot "/home/test/ReviewBoard/Virtual/Test_RB1/htdocs"

        # Alias static media requests to filesystem
        Alias /media "/home/test/ReviewBoard/Virtual/Test_RB1/htdocs/media"
Alias /errordocs "/home/test/ReviewBoard/Virtual/Test_RB1/htdocs/errordocs"
    # I added doxygen
    Alias /doxygen "/var/www/doxygen"

        # Error handlers
        ErrorDocument 500 /errordocs/500.html

        <Directory "/home/test/ReviewBoard/Virtual/Test_RB1/htdocs">
                AllowOverride All
        </Directory>

    <Directory "/var/www/doxygen">
                AllowOverride All
        </Directory>

        # Direct all other requests to the fastcgi server
        RewriteEngine on
    RewriteLog /var/log/apache2/rewrite.log
    RewriteLogLevel 3
        <IfModule mod_fcgid.c>
        # I had to add /reviews to start of each rule, that is my RB base
                RewriteRule ^/reviews/(media.*)$ /$1 [QSA,L,PT]
                RewriteRule ^/reviews/(docs.*)$ /$1 [QSA,L,PT]
        # I added doxygen, based off /var/www
        RewriteRule ^/doxygen/(.*)$ /doxygen/html/$1 [QSA,L,PT]
        </IfModule>
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule ^/(.*)$ /reviewboard.fcgi/$1 [QSA,L]
</VirtualHost>

I am running inside a VirtualEnv environment, but I don't think that affects the fcgi setup. I also had to modify the reviewboard fastcgi wrapper app to set a PATH environment to be able to run the server, so the patch utility could be found, but I
don't know if that is an issue with 1.0

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-iss...@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.

Reply via email to