From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.239.138.72 with SMTP id o8cs151747hbo; Sat, 8 May 2010 08:52:38 -0700 (PDT) Received-SPF: pass (google.com: domain of rack-devel+bncCL6j-8eLBxDDkZbfBBoEqtBZOw@googlegroups.com designates 10.141.188.10 as permitted sender) client-ip=10.141.188.10; Authentication-Results: mr.google.com; spf=pass (google.com: domain of rack-devel+bncCL6j-8eLBxDDkZbfBBoEqtBZOw@googlegroups.com designates 10.141.188.10 as permitted sender) smtp.mail=rack-devel+bncCL6j-8eLBxDDkZbfBBoEqtBZOw@googlegroups.com; dkim=pass header.i=rack-devel+bncCL6j-8eLBxDDkZbfBBoEqtBZOw@googlegroups.com Received: from mr.google.com ([10.141.188.10]) by 10.141.188.10 with SMTP id q10mr734687rvp.13.1273333957223 (num_hops = 1); Sat, 08 May 2010 08:52:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:x-beenthere:received:received:received :received:received:received-spf:received:mime-version:received :received:date:x-ip:user-agent:x-http-useragent:message-id:subject :from:to:x-original-authentication-results:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:sender:list-subscribe:list-unsubscribe:content-type :content-transfer-encoding; bh=WppMrnUc9suTOUPTTwItt1zF5D8ZF+ioKzx1Z8hf3ug=; b=P1N69LVXelewPLtINPI5JXiSxUgfO6segHhnpebLcRq0pU8hy310+SyJW0/E+uqs2/ AHW3ibsEuK20mDosEHUWY0O21CK9KRo9ocTj7e/u3f4nSpjswdW6LrzllXgwZuOuZzAe VbTsLAKKo1YPR1GwUaSMtbSqiMfVIiPcuXy34= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:mime-version:date:x-ip:user-agent :x-http-useragent:message-id:subject:from:to :x-original-authentication-results:x-original-sender:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :sender:list-subscribe:list-unsubscribe:content-type :content-transfer-encoding; b=tZX95hltUiMmmX9eu4Z9PKsXFn3IgtbOB10T4yv1JtcH4nNt/wAwmLZskxlTgyj87u aIkp0N78Q01mRbN2DEjUnb7Pob3zTf3EBlr+er8NxBPZOvC+V5MwELXH1zLxw0XP0foT Iy6rlky60ygFEcYbu5lcBD6ZZupLiOybZ30Tc= Received: by 10.141.188.10 with SMTP id q10mr143094rvp.13.1273333955835; Sat, 08 May 2010 08:52:35 -0700 (PDT) X-BeenThere: rack-devel@googlegroups.com Received: by 10.141.188.22 with SMTP id q22ls10563681rvp.1.p; Sat, 08 May 2010 08:52:34 -0700 (PDT) Received: by 10.140.83.31 with SMTP id g31mr165132rvb.26.1273333954422; Sat, 08 May 2010 08:52:34 -0700 (PDT) Received: by 10.91.49.14 with SMTP id b14mr2454449agk.14.1273325554202; Sat, 08 May 2010 06:32:34 -0700 (PDT) Received: by 10.91.49.14 with SMTP id b14mr2454444agk.14.1273325554144; Sat, 08 May 2010 06:32:34 -0700 (PDT) Return-Path: Received: from mail-gx0-f197.google.com (mail-gx0-f197.google.com [209.85.217.197]) by gmr-mx.google.com with ESMTP id 18si293202gxk.11.2010.05.08.06.32.34; Sat, 08 May 2010 06:32:34 -0700 (PDT) Received-SPF: pass (google.com: domain of millisami@gmail.com designates 209.85.217.197 as permitted sender) client-ip=209.85.217.197; Received: by mail-gx0-f197.google.com with SMTP id 21so1536073gxk.13 for ; Sat, 08 May 2010 06:32:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.91.162.19 with SMTP id p19mr101769ago.58.1273325554033; Sat, 08 May 2010 06:32:34 -0700 (PDT) Received: by 11g2000prw.googlegroups.com with HTTP; Sat, 8 May 2010 06:32:33 -0700 (PDT) Date: Sat, 8 May 2010 06:32:33 -0700 (PDT) X-IP: 124.41.245.255 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3,gzip(gfe) Message-ID: <9b024118-96d4-495d-8cc9-acbaa85e5cb1@11g2000prw.googlegroups.com> Subject: Problem serving static site From: millisami To: Rack Development X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of millisami@gmail.com designates 209.85.217.197 as permitted sender) smtp.mail=millisami@gmail.com X-Original-Sender: millisami@gmail.com Reply-To: rack-devel@googlegroups.com Precedence: list Mailing-list: list rack-devel@googlegroups.com; contact rack-devel+owners@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: Sender: rack-devel@googlegroups.com List-Subscribe: , List-Unsubscribe: , Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable The following is the dir structure of the folder site. =E2=94=9C=E2=94=80=E2=94=80 config.ru =E2=94=9C=E2=94=80=E2=94=80 README =E2=94=9C=E2=94=80=E2=94=80 site =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 about_us.html =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 contact_us.html =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 images =E2=94=82=C2=A0=C2=A0 =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 bag= s =E2=94=82=C2=A0=C2=A0 =E2=94=82=C2=A0=C2=A0 =E2=94=82=C2=A0=C2=A0 =E2=94=9C= =E2=94=80=E2=94=80 bag1.jpg =E2=94=82=C2=A0=C2=A0 =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 but= ton.png =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 index.html and this is config.ru #Use the regex to serve everything from :root directory #use Rack::Static, :urls =3D> [/./], :root =3D> "site" require 'rack-rewrite' use Rack::Static, :urls =3D> ["/stylesheets", "/images", "/ javascripts"], :root =3D> "site" #use Rack::Static, :urls =3D> [/./], :root =3D> "site" run lambda { |env| [200, { 'Content-Type' =3D> 'text/html', 'Cache- Control' =3D> 'public, max-age=3D86400' }, File.open('site/index.html', File::RDONLY)] } When I run it, the index page is served and when I navigate to Contact page, i.e. /contact, the url is consumed and returned 200, but the content is still the same page.