Change url for serving files with webbrowser

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Change url for serving files with webbrowser

Mariano Martinez Peck
Hi guys,

I have my app running with a nginx web server. My app url is something like: http://myapp/site1/appX. I have many sites running and each is the same root app but registered as a different name. For example, http://myapp/site2/appX,   http://myapp/site3/appX  etc.

Each app has it's own configuration file from nginx. When I do a request for css and other files, Seaside does a get over http://myapp/MyFileLibrary/Main.css  for all sites. Now I want to configure the path for resources for each site. So I want for example:

etc...

That way I can then customize (hope to discover how) nginx so that it first tries to get the css from an specific site folder and if not found, from a general root folder (this is my real goal). 

Anyway....do you know how can I do tell seaside to generate such urls for resources? 

Thanks, 


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Change url for serving files with webbrowser

Johan Brichau-2
Hi Mariano,

I think the #resourceUrl: is what you are looking for.

http://book.seaside.st/book/in-action/serving-files/images

cheers
Johan

On 19 May 2014, at 21:55, Mariano Martinez Peck <[hidden email]> wrote:

> Hi guys,
>
> I have my app running with a nginx web server. My app url is something like: http://myapp/site1/appX. I have many sites running and each is the same root app but registered as a different name. For example, http://myapp/site2/appX,   http://myapp/site3/appX  etc.
>
> Each app has it's own configuration file from nginx. When I do a request for css and other files, Seaside does a get over http://myapp/MyFileLibrary/Main.css  for all sites. Now I want to configure the path for resources for each site. So I want for example:
>
> http://myapp/site1/resources/MyFileLibrary/Main.css
> http://myapp/site2/resources/MyFileLibrary/Main.css
>
> etc...
>
> That way I can then customize (hope to discover how) nginx so that it first tries to get the css from an specific site folder and if not found, from a general root folder (this is my real goal).
>
> Anyway....do you know how can I do tell seaside to generate such urls for resources?
>
> Thanks,
>
>
> --
> Mariano
> http://marianopeck.wordpress.com
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside