Hi,<div><br></div><div>It&#39;s a while since I experimented with lighttpd; I believe the following worked for me:</div><div><br></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; "><table class="Bs nH iY" cellpadding="0" style="font-size: medium; position: relative; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-collapse: collapse; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); width: 1743px; ">
<tbody><tr><td class="Bu" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: arial, sans-serif; vertical-align: top; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
<div class="nH if" style="padding-top: 0px; padding-right: 0px; padding-bottom: 1px; padding-left: 0px; "><div class="nH"><div class="nH hx" style="color: rgb(0, 0, 0); padding-top: 4px; padding-right: 8px; padding-bottom: 4px; padding-left: 8px; ">
<div class="nH"><div class="h7 ie nH oy8Mbf" style="clear: both; padding-bottom: 0px; "><div class="Bk" style="position: relative; margin-bottom: 10px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(239, 239, 239); border-right-color: rgb(239, 239, 239); border-left-color: rgb(239, 239, 239); border-bottom-color: rgb(226, 226, 226); border-top-width: 0px; border-top-left-radius: 7px 7px; border-top-right-radius: 7px 7px; border-bottom-right-radius: 7px 7px; border-bottom-left-radius: 7px 7px; width: 1494px; ">
<div class="G3 G2" style="padding-top: 3px; background-color: rgb(255, 255, 255); border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-color: rgb(188, 188, 188); border-bottom-color: rgb(188, 188, 188); border-left-color: rgb(188, 188, 188); border-top-width: 1px; border-top-style: solid; border-top-color: rgb(188, 188, 188); border-top-left-radius: 7px 7px; border-top-right-radius: 7px 7px; border-bottom-right-radius: 7px 7px; border-bottom-left-radius: 7px 7px; ">
<div><div id=":id"><div class="HprMsc"><div class="gs"><div id=":if" class="ii gt" style="font-size: 13px; margin-top: 5px; margin-right: 15px; margin-bottom: 5px; margin-left: 15px; padding-bottom: 20px; position: relative; z-index: 2; ">
<div id=":ie">$HTTP[&quot;url&quot;] !~ &quot;^/resources/&quot; {<br>#  fastcgi.debug=1<br> fastcgi.server = (&quot;/&quot; =&gt;(<br>   (&quot;host&quot; =&gt; &quot;127.0.0.1&quot;, &quot;port&quot; =&gt; 9001, &quot;check-local&quot; =&gt; &quot;disable&quot;),<br>
   (&quot;host&quot; =&gt; &quot;127.0.0.1&quot;, &quot;port&quot; =&gt; 9002, &quot;check-local&quot; =&gt; &quot;disable&quot;),<br>   (&quot;host&quot; =&gt; &quot;127.0.0.1&quot;, &quot;port&quot; =&gt; 9003, &quot;check-local&quot; =&gt; &quot;disable&quot;)<br>
  )<br> )<br>}<br><br>which would pass the request onto Gemstone unless the request began<br>with &#39;^/resources/&#39;</div></div></div></div></div></div></div></div></div></div></div></div></div></td></tr></tbody></table>
</span><div class="gmail_quote">and add something similar to the below to your lighttpd configuration</div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: medium; "><table class="Bs nH iY" cellpadding="0" style="position: relative; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-collapse: collapse; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); width: 1743px; background-position: initial initial; background-repeat: initial initial; ">
<tbody><tr><td class="Bu" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: arial, sans-serif; vertical-align: top; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
<div class="nH if" style="padding-top: 0px; padding-right: 0px; padding-bottom: 1px; padding-left: 0px; "><div class="nH"><div class="nH hx" style="color: rgb(0, 0, 0); padding-top: 4px; padding-right: 8px; padding-bottom: 4px; padding-left: 8px; ">
<div class="nH"><div class="h7 ie nH oy8Mbf" style="clear: both; padding-bottom: 0px; "><div class="Bk" style="position: relative; margin-bottom: 10px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(239, 239, 239); border-right-color: rgb(239, 239, 239); border-left-color: rgb(239, 239, 239); border-bottom-color: rgb(226, 226, 226); border-top-width: 0px; border-top-left-radius: 7px 7px; border-top-right-radius: 7px 7px; border-bottom-right-radius: 7px 7px; border-bottom-left-radius: 7px 7px; width: 1494px; ">
<div class="G3 G2" style="padding-top: 3px; background-color: rgb(255, 255, 255); border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-color: rgb(188, 188, 188); border-bottom-color: rgb(188, 188, 188); border-left-color: rgb(188, 188, 188); border-top-width: 1px; border-top-style: solid; border-top-color: rgb(188, 188, 188); border-top-left-radius: 7px 7px; border-top-right-radius: 7px 7px; border-bottom-right-radius: 7px 7px; border-bottom-left-radius: 7px 7px; ">
<div><div id=":1m9"><div class="HprMsc"><div class="gs"><div id=":1m7" class="ii gt" style="font-size: 13px; margin-top: 5px; margin-right: 15px; margin-bottom: 5px; margin-left: 15px; padding-bottom: 20px; position: relative; z-index: 2; ">
<div id=":1m8"><div>server.document-root  = &quot;/var/www/&quot;</div></div></div></div></div></div></div></div></div></div></div></div></div></div></td></tr></tbody></table></span><div class="gmail_quote">HTH</div><div class="gmail_quote">
<br></div><div class="gmail_quote">Nick</div><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote">On 7 August 2011 13:46, Mark Ross <span dir="ltr">&lt;<a href="mailto:mark@markross.de">mark@markross.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi all!<br>
I tried hard in the last days to serve static files for my seaside application, but had no success.<br>
<br>
I want to leave static files on the server (/var/www/resources/css/*; js/*; images/*) and access them from within my seaside application e.g. by<br>
<br>
anHtmlRoot javascript url: &#39;/resources/js/flotr.js&#39;.<br>
<br>
This works for me, until upgrading to Seaside 3.<br>
<br>
My configuration:<br>
<br>
GemStone/S 64 3.0.0, fastCGI, lighttpd, Debian stable 64 bit.<br>
<br>
GemStone/S, Seaside, fastCGI and lighttpd are running perfect, but I can´t access static files (/var/www/resources) from within Seaside (e.g.: /resources/css/screen.css not found ).<br>
<br>
I have to configure seaside to handle the resources directory to access the static files - but I have no idea how.<br>
<br>
FastCGI is handling all the requests up from &#39;/&#39;<br>
<br>
My lightttpd config(part for fastcgi) - Thanks to Miguel Cobá (<a href="http://miguel.leugim.com.mx/index.php/2008/09/27/gemstones-and-fastcgi-with-lighttpd/" target="_blank">http://miguel.leugim.com.mx/index.php/2008/09/27/gemstones-and-fastcgi-with-lighttpd/</a>):<br>

<br>
# forward the request to the fastcgi hosts<br>
fastcgi.server = ( &quot;/&quot; =&gt; (<br>
    ( &quot;host&quot; =&gt; &quot;127.0.0.1&quot;, &quot;port&quot; =&gt; 9001, &quot;check-local&quot; =&gt; &quot;disable&quot;),<br>
    ( &quot;host&quot; =&gt; &quot;127.0.0.1&quot;, &quot;port&quot; =&gt; 9002, &quot;check-local&quot; =&gt; &quot;disable&quot;),<br>
    ( &quot;host&quot; =&gt; &quot;127.0.0.1&quot;, &quot;port&quot; =&gt; 9003, &quot;check-local&quot; =&gt; &quot;disable&quot;)<br>
  )<br>
)<br>
# enabling server dir listing to prove if lighttpd is serving the files - ok<br>
server.dir-listing          = &quot;enable&quot;<br>
<br>
-&gt; When I switch off fastcgi server I can lighttpd is serving the files.<br>
<br>
I tried to add:<br>
* a new Seaside Dispatcher: &#39;resources&#39; with server path &#39;/var/www/resources&#39;<br>
* configuration in lighttpd:<br>
        alias.url += ( &quot;/resources/&quot; =&gt; &quot;/var/www/resources&quot; )<br>
* url.rewrite-once = (<br>
                        &quot;^(/resources.*)$&quot; =&gt; &quot;$1&quot;,<br>
                        &quot;^(/.*)$&quot; =&gt; &quot;/$1&quot;<br>
                )<br>
* I read the seaside docs, the web and <a href="http://book.seaside.st" target="_blank">book.seaside.st</a> (which covers static file serving, but with apache)<br>
<br>
<br>
I think it is no difficult setting.<br>
<br>
Anybody out to help?<br>
<br>
<br>
Best regards<br>
<br>
<br>
Mark<br>
<br>
<br>
<br>
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</blockquote></div><br></div>