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 for http://yoursite/reviews/media/ is
>
> 10.x.x.x www.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.x www.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.x www.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.x www.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