<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">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: &nbsp;you do &nbsp;``&nbsp;aRoot stylesheet resourceUrl: '/stylesheets/main.css’ ‘ ‘' )</div><div>- change the location where Seaside serves the file libraries (this is configurable)&nbsp;</div><div><br></div><div>Hope this helps</div><div>Johan</div><div><br></div><div><div><div>[1]&nbsp;<a href="http://book.seaside.st/book/in-action/serving-files/images">http://book.seaside.st/book/in-action/serving-files/images</a></div><div><br><div><div>On 10 Oct 2014, at 21:12, Mariano Martinez Peck &lt;<a href="mailto:marianopeck@gmail.com">marianopeck@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi guys,&nbsp;<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 class="" style="font-family: monospace; font-size: inherit; white-space: pre-wrap;">&lt;script <span class="">type</span>="<span class="">text/javascript</span>" <span class="">src</span>="<a class="vt-p" target="_blank" href="https://quuve.com/JQDevelopmentLibrary/jQuery.js">/JQDevelopmentLibrary/jQuery.js</a>"&gt;</span><span class="" 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 class="" 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;">="</span><span class="" 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;">" </span><span class="" 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;">="</span><span class="" 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;">" </span><span class="" 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;">="</span><a class="vt-p" target="_blank" href="https://quuve.com/TBSDevelopmentLibrary/css/bootstrap.css" style="font-family: monospace; font-size: inherit; white-space: pre-wrap;">/TBSDevelopmentLibrary/css/bootstrap.css</a><span style="color: rgb(136, 18, 128); font-family: monospace; font-size: inherit; white-space: pre-wrap;">"/&gt;</span></div><br>etc...<br><br>Now...I would like to be able to set a different prefix path. For example, 'siteX', and then urls become:<div><br></div><div><div><span class="" style="font-family: monospace; font-size: inherit; white-space: pre-wrap;">&lt;script <span class="">type</span>="<span class="">text/javascript</span>" <span class="">src</span>="/siteX<a class="vt-p" target="_blank" href="https://quuve.com/JQDevelopmentLibrary/jQuery.js">/JQDevelopmentLibrary/jQuery.js</a>"&gt;</span><span class="" 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 class="" 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;">="</span><span class="" 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;">" </span><span class="" 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;">="</span><span class="" 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;">" </span><span class="" 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;">="/siteX/</span><a class="vt-p" target="_blank" href="https://quuve.com/TBSDevelopmentLibrary/css/bootstrap.css" style="font-family: monospace; font-size: inherit; white-space: pre-wrap;">TBSDevelopmentLibrary/css/bootstrap.css</a><span style="color: rgb(136, 18, 128); font-family: monospace; font-size: inherit; white-space: pre-wrap;">"/&gt;</span></div><div><div><br></div><div>Why I want this?&nbsp; Because I want to be able to catch these into nginx locations and search the files in different places.&nbsp;</div><div><br></div><div>Any idea how can I do this?</div><div><br></div><div>Thanks,&nbsp;</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>
_______________________________________________<br>seaside mailing list<br><a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br></blockquote></div><br></div></div></div></div></body></html>