Alias Media Not available

3 views
Skip to first unread message

sapan patel

unread,
Nov 28, 2010, 2:46:40 AM11/28/10
to reviewboard
I am setting up reviewboard on a shared server CentOS.
using mod_python
reviewboard version 1.5.1
DB: sqllite3

I have managed to set up the website on a shared server, in the final
step I can see the website without any media.
my server wont allow me to wite:
"
# Alias static media requests to filesystem
Alias /rb/media "C:/DEV TOOLS/TEST SITES/mobis.test.1/htdocs/media"
Alias /rb/errordocs "C:/DEV TOOLS/TEST SITES/mobis.test.1/htdocs/
errordocs"
"
Its says Alias has been disabled. The server guys recommend me to move
all my media files to another location and point my application to
look for the media files there. I tried to to copy those files
from ..../reviewboard/htdocs/media. but dont know how to tell
reviewboard to look for the media files at the changed location.

Christian Hammond

unread,
Nov 28, 2010, 2:54:56 AM11/28/10
to revie...@googlegroups.com
When you say another location, do you mean on the same server or on a
different server?

You can tell Review Board the URL for any media files in the Admin UI
-> General Settings page.

However, Review Board will always update the media files in the
existing htdocs/media/ directory every time you upgrade. If you really
want to move things (and without knowing where, it's hard to say
what's best), you may want to instead set up a symlink to point to the
existing htdocs/media/ from the new place.

Unlike a standard website or a PHP-based site, Review Board doesn't
use the filesystem for URLs. Instead, all requests by default go
through the Python interpreter (using mod_python, mod_wsgi, or
mod_fastcgi). The Alias directives and the accompanying <Directory>
rules for the media and errordocs directories tell Apache to handle
the requests for the media/errordocs URLs instead, since the Python
process won't serve them. If you're moving your media instead to
another domain (using, say, a dedicated media subdomain), then you'd
want to symlink the directory or rsync the files on upgrade and then
tell Review Board what the media URL is in General Settings.

Christian

--
Christian Hammond - chi...@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...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en

Reply all
Reply to author
Forward
0 new messages