What about using '/reviewboard/' in both SITE_ROOT and FORCE_SCRIPT_NAME?

SITE_ROOT must be '/reviewboard/' for subdirs to work at all.

Christian

On Tuesday, May 31, 2011, Eric Mann <e...@eam.me> wrote:
> So I decided to go back through and document the behavior of each variation:
> SITE_ROOT                  FORCE_SCRIPT_NAME                         
> Behavior'/reviewboard/'                ''                                     
>                        Page Not Found (404 error for ^reviewboard)
> '/reviewboard/'                '/'                                            
>                Page Not Found (404 error for ^reviewboard)'/'                 
>                  '/reviewboard'                                          
> Redirects to /account/login without "reviewboard" in url
> '/'                                  '/reviewboard/'                          
>                Redirects to /account/login without "reviewboard" in url'/'    
>                               'reviewboard/'                                  
>         Redirects to http://localhostreviewboard//dashboard/
>
> If it helps, the error page I get for the first two entries (the 404 error) 
> is:
>
> Page not found (404)
>
>
>
> Request Method:GET
>
> Request URL:http://localhost/
>
> Using the URLconf defined in djblets.util.rooturl, Django tried these URL 
> patterns, in this order:
>
> ^reviewboard/The current URL, , didn't match any of these.
>
> I made sure to set Debug = True so I could get this message ... any ideas?
> On Fri, May 27, 2011 at 4:35 PM, Christian Hammond <chip...@chipx86.com> 
> wrote:
> Hi Eric,
>
> When we build URLs, we use SITE_ROOT as the prefix for the path. So that must 
> always be "/reviewboard/".
>
> You said you tried multiple combinations. If you set SITE_ROOT (and then 
> restart Apache), what other problems did you hit?
>
> Christian
> --
> Christian Hammond - chip...@chipx86.com
> Review Board - http://www.reviewboard.org
> VMware, Inc. - http://www.vmware.com
>
>
> On Fri, May 27, 2011 at 3:21 PM, Eric Mann <e...@eam.me> wrote:
>
>
>
> Running Review Board 1.5.5 on Apache 2.2 under Windows Server 2003.  Just 
> about everything works beautifully, except ...
> The subdirectory is stripped off of the URL in rare cases.
>
>
>
>
> I'm running Review Board as http://devserver/reviewboard/  This way it can 
> run along side Trac (http://devserver/trac/).  Unfortunately, the 
> /reviewboard/ randomly disappears at times:
>
>
>
> If I'm logged out and try to navigate to http://devserver/reviewboard, the 
> browser redirects 
> to http://devserver/account/login/?next_page=/reviewboard//dashboard/
>
>
>
> If I'm logged in and log out, the browser redirects 
> to http://devserver/account/login/If I try to close a review (as submitted, 
> discarded, or delete), the browser tries to make a request 
> from http://devserver/api/json/reviewrequests/2/close/submitted/ rather 
> than http://devserver/reviewboard/api/json/reviewrequests/2/close/submitted/
>
>
>
> This isn't a showstopper in terms of personal usability, as I can still use 
> Review Board just fine and it still integrates with TortoiseHg as expected.  
> However, it is a major problem when it comes to working with other developers 
> and to streamlining our development process.  I need to figure out what's 
> going wrong with the URL redirection and fix it quickly.
>
>
>
>
> For reference:I'm running mod_wsgi, and I understand this has been a problem 
> in the past as well.I have tried every possible variation of "/" 
> "/reviewboard" "reviewboard/" "/reviewboard/" I could come up with for both 
> SITE_ROOT and FORCE_SCRIPT_NAME
>
>
>
> Here's the VirtualHost directive from Apache:
> <VirtualHost *:80>    ServerName devserver
>       DocumentRoot "E:/Inception/ReviewBoard/htdocs"
>       # Error handlers
>       ErrorDocument 500 /errordocs/500.html
>       WSGIPassAuthorization On
>       WSGIScriptAlias "/reviewboard" 
> "E:/Inception/ReviewBoard/htdocs/reviewboard.wsgi"       WSGIScriptAlias 
> "/trac" "E:/Inception/Trac/cgi-bin/trac.wsgi"
>
>
>
>
>       <Location '/trac'>              AuthType Basic          AuthName "Trac"
>
>
>
>               AuthUserFile E:/Inception/Trac/.htpasswd                Require 
> valid-user      </Location>
>
>
>
>
>
>
>
>
> --
> Want to help the Review Board project? Donate today at 
> http://www.reviewboard.org/donate/
> Happy user? Let us know at http://www.reviewboard.org/users/
> -~----------~----~----~----~------~----~------~--~---
> To unsubscribe from this group, send email to 
> reviewboard+unsubscr...@googlegroups.com
> For more options, visit this group at 
> http://groups.google.com/group/reviewboard?hl=en

-- 
-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~----------~----~----~----~------~----~------~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en

Reply via email to