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.

Thanks.


> On Mon, Apr 6, 2009 at 4:08 PM, Chuck <ctuf...@gmail.com> wrote:
>
> > Thanks for the suggestion, but it still isn't quite working. The error
> > is different, though
>
> > 10.x.x.xwww.example.com- [06/Apr/2009:16:00:41 -0700] "GET /reviews/
> > media/ HTTP/1.1" 404 345 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US;
> > rv:1.9.0.8) Gecko/2009032711 Ubuntu/8.10 (intrepid) Firefox/3.0.8"
> > 10.x.x.xwww.example.com- [06/Apr/2009:16:00:41 -0700] "GET /reviews/
> > media/ HTTP/1.1" 404 345 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US;
> > rv:1.9.0.8) Gecko/2009032711 Ubuntu/8.10 (intrepid) Firefox/3.0.8"
>
> > My assumption was that the configuration files took into account the
> > settings I passed to rb-site. If not, are there other changes I should
> > make to use thehttp://www.example.com/reviews/path instead of
> >http://reviews.example.com/?
>
> > On Apr 3, 2:17 pm, Christian Hammond <chip...@chipx86.com> wrote:
> > > You need to update your lighttpd configuration to change:
>
> > >        "^(/media/.*)$" => "$1",
>
> > > to:
>
> > >        "^(/reviews/media/.*)$" => "$1",
>
> > > Christian
>
> > > --
> > > Christian Hammond - chip...@chipx86.com
> > > Review Board -http://www.review-board.org
> > > VMware, Inc. -http://www.vmware.com
>
> > > On Fri, Apr 3, 2009 at 11:18 AM, Chuck <ctuf...@gmail.com> wrote:
>
> > > > I'm going to "me too" this problem, but using lighttpd. The machine is
> > > > running Ubuntu 8.04 with a default lighttpd installation and
> > > > configuration file.
>
> > > > [660] egrep -v '^(#|$)' /etc/lighttpd/lighttpd.conf
> > > > server.modules              = (
> > > >            "mod_access",
> > > >            "mod_alias",
> > > >            "mod_accesslog",
> > > >            "mod_compress",
> > > >  )
> > > > server.document-root       = "/var/www/"
> > > > server.errorlog            = "/var/log/lighttpd/error.log"
> > > > index-file.names           = ( "index.php", "index.html",
> > > >                               "index.htm", "default.htm",
> > > >                               "index.lighttpd.html" )
> > > > accesslog.filename         = "/var/log/lighttpd/access.log"
> > > > url.access-deny            = ( "~", ".inc" )
> > > > static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
>
> > > > server.pid-file            = "/var/run/lighttpd.pid"
> > > > dir-listing.encoding        = "utf-8"
> > > > server.dir-listing          = "enable"
> > > > server.username            = "www-data"
> > > > server.groupname           = "www-data"
> > > > compress.cache-dir          = "/var/cache/lighttpd/compress/"
> > > > compress.filetype           = ("text/plain", "text/html", "application/
> > > > x-javascript", "text/css")
> > > > include_shell "/usr/share/lighttpd/create-mime.assign.pl"
> > > > include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
> > > > $HTTP["remoteip"] == "127.0.0.1" {
> > > >        alias.url += (
> > > >                "/doc/" => "/usr/share/doc/",
> > > >                "/images/" => "/usr/share/images/"
> > > >        )
> > > >        $HTTP["url"] =~ "^/doc/|^/images/" {
> > > >                dir-listing.activate = "enable"
> > > >        }
> > > > }
> > > > include "rb-lighttpd.conf"
> > > > [661] egrep -v '^(#|$)' /etc/lighttpd/rb-lighttpd.conf
> > > > server.modules += (
> > > >    "mod_auth",
> > > >    "mod_access",
> > > >    "mod_rewrite",
> > > >    "mod_expire",
> > > >    "mod_fastcgi",
> > > >    "mod_alias",
> > > >    "mod_accesslog",
> > > >    "mod_compress",
> > > > )
> > > > $HTTP["host"] =~ "www\.example\.com" {
> > > >    # This is not used directly, it is superceded by our aliases
> > > > below.
> > > >    server.document-root = "/var/www/reviews.example.com/htdocs"
> > > >    server.errorlog      = "/var/www/reviews.example.com/logs/lighttpd-
> > > > error.log"
> > > >    accesslog.filename   = "/var/www/reviews.example.com/logs/lighttpd-
> > > > access.log"
> > > >    fastcgi.server = (
> > > >        "/reviewboard.fcgi" => (
> > > >            "main" => (
> > > >                "bin-path" => "/var/www/reviews.example.com/htdocs/
> > > > reviewboard.fcgi",
> > > >                "socket" => "/var/www/reviews.example.com/tmp/
> > > > fastcgi.sock",
> > > >                "check-local" => "disable",
> > > >            )
> > > >        ),
> > > >    )
> > > >    alias.url = (
> > > >        "/media" => "/var/www/reviews.example.com/htdocs/media",
> > > >        "/errordocs" => "/var/www/reviews.example.com/htdocs/
> > > > errordocs",
> > > >    )
> > > >    url.rewrite-once = (
> > > >        "^(/media/.*)$" => "$1",
> > > >        "^(/errordocs/.*)$" => "$1",
> > > >        "^(/.*)$" => "/reviewboard.fcgi$1",
> > > >    )
> > > >    # Aggressively cache all static files
> > > >    $HTTP["url"] =~ "\.(jpg|gif|png|css|js|htc)" {
> > > >        expire.url = ( "" => "access 1 years" )
> > > >    }
> > > >    # Compress files for faster transfer
> > > >    compress.filetype = (
> > > >        "text/plain",
> > > >        "text/html",
> > > >        "text/javascript",
> > > >        "text/css",
> > > >        "text/xml"
> > > >    )
> > > >    compress.cache-dir = "/var/www/reviews.example.com/tmp/"
> > > >    mimetype.assign = (
> > > >        ".gif"  => "image/gif",
> > > >        ".jpg"  => "image/jpeg",
> > > >        ".jpeg" => "image/jpeg",
> > > >        ".ico"  => "image/png",
> > > >        ".png"  => "image/png",
> > > >        ".pdf"  => "application/pdf",
> > > >        ".gz"   => "application/x-gzip",
> > > >        ".css"  => "text/css",
> > > >        ".html" => "text/html",
> > > >        ".htm"  => "text/html",
> > > >        ".txt"  => "text/plain",
> > > >        ".js"   => "text/javascript",
> > > >    )
> > > > }
>
> > > > The access log forhttp://yoursite/reviews/media/is
>
> > > > 10.x.x.xwww.example.com-[03/Apr/2009:11:00:39 -0700] "GET /reviews/
> > > > media/rb/css/common.css?1238710879 HTTP/1.1" 404 2447 "http://
> > > >www.example.com/reviews/account/login/?next_page=/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"
> > > > 10.x.x.xwww.example.com-[03/Apr/2009:11:04:03 -0700] "GET /reviews/
> > > > media/ HTTP/1.1" 404 2430 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US;
> > > > rv:1.9.0.8) Gecko/2009032711 Ubuntu/8.10 (intrepid) Firefox/3.0.8"
> > > > 10.x.x.xwww.example.com-[03/Apr/2009:11:00:39 -0700] "GET /reviews/
> > > > media/rb/css/common.css?1238710879 HTTP/1.1" 404 2447 "http://
> > > >www.example.com/reviews/account/login/?next_page=/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"
> > > > 10.x.x.xwww.example.com-[03/Apr/2009:11:04:03 -0700] "GET /reviews/
> > > > media/ HTTP/1.1" 404 2430 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US;
> > > > rv:1.9.0.8) Gecko/2009032711 Ubuntu/8.10 (intrepid) Firefox/3.0.8"
--~--~---------~--~----~------------~-------~--~----~
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