On Apr 6, 5:12 pm, kmw <kochhar...@gmail.com> wrote:
> On Apr 6, 4:12 pm, Christian Hammond <chip...@chipx86.com> wrote:
>
> > It looks very possible that generated lighttpd config files have broken
> > subdir install support.
>
> > Try also updating the paths in your alias.url section for for media and
> > errordocs.
>
> > Christian
>
> Hi,
>
> I seem have this problem as well, after modifying the alias.url and
> the url.rewrite rules. I'm running reviewboard via lighttpd on Ubuntu
> 8.10. The only difference from the install instructions is that I've
> installed reviewboard into a self-contained directory in /opt/
> reviewboard. Here are the relevant sections of my lighttpd.conf, I can
> provide more as needed.
>
>     alias.url = (
>         "/reviews/media" => "/opt/reviewboard/var/www/localhost/htdocs/
> media",
>         "/reviews/errordocs" => "/opt/reviewboard/var/www/localhost/
> htdocs/errordocs",
>     )
>
>     url.rewrite-once = (
>         "^(/reviews/media/.*)$" => "$1",
>         "^(/reviews/errordocs/.*)$" => "$1",
>         "^(/.*)$" => "/reviewboard.fcgi$1",
>     )
>
> Here are the errors from the logs
>     ::ffff:127.0.0.1 localhost - [06/Apr/2009:17:03:23 -0700] "GET /
> reviews/media/rb/css/common.css?1239050624 HTTP/1.1" 404 345 "http://
> localhost/reviews/account/preferences/?next=/reviews/dashboard/"
> "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko/2009032711
> Ubuntu/8.10 (intrepid) Firefox/3.0.8"
>     ...
>      <snip>
>     ...
>     ::ffff:127.0.0.1 localhost - [06/Apr/2009:17:03:23 -0700] "GET /
> reviews/media/rb/css/common.css?1239050624 HTTP/1.1" 404 345 "http://
> localhost/reviews/account/preferences/?next=/reviews/dashboard/"
> "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko/2009032711
> Ubuntu/8.10 (intrepid) Firefox/3.0.8"
>
> It seems that the lighttpd conf that is generated is broken, which I
> fixed manually above, but it also seems to have another problem
> somewhere else.

Figured it out: my url.rewrite rules were wrong, try this in the
lighttpd.conf, it should work

    alias.url = (
        "/media" => "/opt/reviewboard/var/www/localhost/htdocs/media",
        "/errordocs" => "/opt/reviewboard/var/www/localhost/htdocs/
errordocs",
    )

    url.rewrite-once = (
        "^/reviews(/media/.*)$" => "$1",
        "^/reviews(/errordocs/.*)$" => "$1",
        "^(/.*)$" => "/reviewboard.fcgi$1",
    )

Should I file a bug in the issue tracker to fix the generated
lighttpd.conf?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To post to this group, send email to reviewboard@googlegroups.com
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