<div dir="ltr"><div>Thank you Esteban and James (more below). </div><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Oct 11, 2014 at 4:12 AM, Johan Brichau <span dir="ltr">&lt;<a href="mailto:johan@inceptive.be" target="_blank" class="vt-p">johan@inceptive.be</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word">This what the resource base url setting [1] does.<br><div><div><br></div><div>I’m guessing you are including Seaside’s file libraries to add these resources to your application but that nginx captures the url’s generated by Seaside?</div><div>I think you have two options:</div><div>- forget about file libraries served by Seaside and reference the statically served files yourself (in #updateRoot:  you do  `` aRoot stylesheet resourceUrl: &#39;/stylesheets/main.css’ ‘ ‘&#39; )</div></div></div></blockquote><div><br></div><div>OK, good. I didn&#39;t know that one. </div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div>- change the location where Seaside serves the file libraries (this is configurable) </div><div><br></div></div></div></blockquote><div><br></div><div>Well, this is what I wanted to do and I already saw that link. But I had /config disabled from my nginx config...and in any case, I wanted to do that via code. I ended up doing:</div><div><br></div><div><div>WAFileHandler default preferenceAt: #resourceBaseUrl put: (WAUrl new addToPath: &#39;/mariano/webfiles&#39;).</div></div><div><br class="">Is this the expected way? It seems a bit clunky... but at least the links were generated as I wanted. <br></div><div><br></div><div>Esteban, the &quot;<span style="font-family:arial,sans-serif;font-size:13px">Maybe simply setting #resourceBaseUrl to &#39;siteX&#39; in your WAApplication </span><span style="font-family:arial,sans-serif;font-size:13px">(at root) would do the trick.&quot;. That didn&#39;t help. Reviewing the code I notived that I HAD to set the preference to </span>WAFileHandler default, not the app...</div><div><br></div><div><b>In any case....all of this was to try to fix a requirement I have but I at end I am not sure if even adding this preffix would help me. The requirement is here if someone han answer in mind ;) <a href="http://stackoverflow.com/questions/26285450/nignx-try-files-in-different-directories-for-different-locations">http://stackoverflow.com/questions/26285450/nignx-try-files-in-different-directories-for-different-locations</a></b></div><div><br></div><div><br></div><div>Thanks in advance, </div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div></div><div>Hope this helps</div><div>Johan</div><div><br></div><div><div><div>[1] <a href="http://book.seaside.st/book/in-action/serving-files/images" target="_blank" class="vt-p">http://book.seaside.st/book/in-action/serving-files/images</a></div><div><br><div><div><div class="h5"><div>On 10 Oct 2014, at 21:12, Mariano Martinez Peck &lt;<a href="mailto:marianopeck@gmail.com" target="_blank" class="vt-p">marianopeck@gmail.com</a>&gt; wrote:</div><br></div></div><blockquote type="cite"><div><div class="h5"><div dir="ltr">Hi guys, <div><br></div><div>I am currently serving my css and js static files with nginx. But so far, all these were generated in the default root path. For example:</div><div><br></div><div><span style="font-family:monospace;font-size:inherit;white-space:pre-wrap">&lt;script <span>type</span>=&quot;<span>text/javascript</span>&quot; <span>src</span>=&quot;<a href="https://quuve.com/JQDevelopmentLibrary/jQuery.js" target="_blank" class="vt-p">/JQDevelopmentLibrary/jQuery.js</a>&quot;&gt;</span><span style="font-family:monospace;font-size:inherit;white-space:pre-wrap">&lt;/script&gt;</span></div><div><span style="color:rgb(136,18,128);font-family:monospace;font-size:inherit;white-space:pre-wrap">&lt;link </span><span style="font-family:monospace;font-size:inherit;white-space:pre-wrap">rel</span><span style="color:rgb(136,18,128);font-family:monospace;font-size:inherit;white-space:pre-wrap">=&quot;</span><span style="font-family:monospace;font-size:inherit;white-space:pre-wrap">stylesheet</span><span style="color:rgb(136,18,128);font-family:monospace;font-size:inherit;white-space:pre-wrap">&quot; </span><span style="font-family:monospace;font-size:inherit;white-space:pre-wrap">type</span><span style="color:rgb(136,18,128);font-family:monospace;font-size:inherit;white-space:pre-wrap">=&quot;</span><span style="font-family:monospace;font-size:inherit;white-space:pre-wrap">text/css</span><span style="color:rgb(136,18,128);font-family:monospace;font-size:inherit;white-space:pre-wrap">&quot; </span><span style="font-family:monospace;font-size:inherit;white-space:pre-wrap">href</span><span style="color:rgb(136,18,128);font-family:monospace;font-size:inherit;white-space:pre-wrap">=&quot;</span><a href="https://quuve.com/TBSDevelopmentLibrary/css/bootstrap.css" style="font-family:monospace;font-size:inherit;white-space:pre-wrap" target="_blank" class="vt-p">/TBSDevelopmentLibrary/css/bootstrap.css</a><span style="color:rgb(136,18,128);font-family:monospace;font-size:inherit;white-space:pre-wrap">&quot;/&gt;</span></div><br>etc...<br><br>Now...I would like to be able to set a different prefix path. For example, &#39;siteX&#39;, and then urls become:<div><br></div><div><div><span style="font-family:monospace;font-size:inherit;white-space:pre-wrap">&lt;script <span>type</span>=&quot;<span>text/javascript</span>&quot; <span>src</span>=&quot;/siteX<a href="https://quuve.com/JQDevelopmentLibrary/jQuery.js" target="_blank" class="vt-p">/JQDevelopmentLibrary/jQuery.js</a>&quot;&gt;</span><span style="font-family:monospace;font-size:inherit;white-space:pre-wrap">&lt;/script&gt;</span></div><div><span style="color:rgb(136,18,128);font-family:monospace;font-size:inherit;white-space:pre-wrap">&lt;link </span><span style="font-family:monospace;font-size:inherit;white-space:pre-wrap">rel</span><span style="color:rgb(136,18,128);font-family:monospace;font-size:inherit;white-space:pre-wrap">=&quot;</span><span style="font-family:monospace;font-size:inherit;white-space:pre-wrap">stylesheet</span><span style="color:rgb(136,18,128);font-family:monospace;font-size:inherit;white-space:pre-wrap">&quot; </span><span style="font-family:monospace;font-size:inherit;white-space:pre-wrap">type</span><span style="color:rgb(136,18,128);font-family:monospace;font-size:inherit;white-space:pre-wrap">=&quot;</span><span style="font-family:monospace;font-size:inherit;white-space:pre-wrap">text/css</span><span style="color:rgb(136,18,128);font-family:monospace;font-size:inherit;white-space:pre-wrap">&quot; </span><span style="font-family:monospace;font-size:inherit;white-space:pre-wrap">href</span><span style="color:rgb(136,18,128);font-family:monospace;font-size:inherit;white-space:pre-wrap">=&quot;/siteX/</span><a href="https://quuve.com/TBSDevelopmentLibrary/css/bootstrap.css" style="font-family:monospace;font-size:inherit;white-space:pre-wrap" target="_blank" class="vt-p">TBSDevelopmentLibrary/css/bootstrap.css</a><span style="color:rgb(136,18,128);font-family:monospace;font-size:inherit;white-space:pre-wrap">&quot;/&gt;</span></div><div><div><br></div><div>Why I want this?  Because I want to be able to catch these into nginx locations and search the files in different places. </div><div><br></div><div>Any idea how can I do this?</div><div><br></div><div>Thanks, </div><div><br></div>-- <br>Mariano<br><a href="http://marianopeck.wordpress.com/" target="_blank" class="vt-p">http://marianopeck.wordpress.com</a><br>
</div></div></div></div></div><span class="">
_______________________________________________<br>seaside mailing list<br><a href="mailto:seaside@lists.squeakfoundation.org" target="_blank" class="vt-p">seaside@lists.squeakfoundation.org</a><br><a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank" class="vt-p">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br></span></blockquote></div><br></div></div></div></div></div><br>_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" class="vt-p">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank" class="vt-p">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank" class="vt-p">http://marianopeck.wordpress.com</a><br>
</div></div>