1232: Installing a site in a subdirectory does not display pages formatted with CSS
- Fixed
- Review Board
e2f***@gmai***** (Google Code) (Is this you? Claim this profile.) | |
|
|
Sept. 15, 2009 |
What version are you running? ReviewBoard-1.0-py2.4 What's the URL of the page containing the problem? N/A What steps will reproduce the problem? 1. Install Review Board site using Apache and mod_python by following directions at http://www.review-board.org/docs/manual/dev/admin/sites/creating-sites/ and specify "/reviews/" for the Root Path. 2. Browse to the site, e.g. http://reviews.example.com/reviews/" What is the expected output? What do you see instead? I expect to see the login screen and Dashboard rendered with CSS. Instead, I just see plain text. What operating system are you using? What browser? Ubuntu Linux 9.04 on x86, Firefox 3.0.11 Please provide any additional information below. The generated apache-modpython.conf file does not use the specified root path subdirectory in the virtual host override rules nor in the alias. I've attached an untested patch that attempts to fix it. I don't know if Site.site_root defaults to '/' so there may need to be some tweaking of this patch; I'm also not a Python programmer!
One more thing: to avoid clobbering other sites that are installed on the Apache server, the Location should be specified too in the VirtualHost section, like this: @@ -6,7 +6,7 @@ ErrorDocument 500 /errordocs/500.html # Serve django pages - <Location "/"> + <Location "@siteroot@"> PythonPath "['@sitedir@/conf'] + sys.path" SetEnv DJANGO_SETTINGS_MODULE reviewboard.settings SetEnv PYTHON_EGG_CACHE "@sitedir@/tmp/egg_cache"
Please submit this patch to http://reviews.review-board.org/
-
+ Confirmed -
- Priority-Medium + Priority-High + Milestone-Release1.0.x + Component-Deployment
I'm having trouble creating a patch that RB will accept. I first tried to upload a standard unified diff, but RB said it couldn't recognize it. After looking at other examples, I realized it required a git-style diff. So I downloaded the source using git, made the changes in my local copy, ran `git diff', then tried to upload that. But RB then said it couldn't find the files in the repository. What am I doing wrong?
Thanks. Submitted as http://reviews.review-board.org/r/1044/