You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@sling.apache.org by to...@wamonline.org.uk on 2010/09/10 14:51:41 UTC

Sling Base Url

  BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }Hi
Guys,
 I've been playing around with sling on and off for a few weeks and
in development jetty mode my app runs fine, but I want to deploy to
tomcat where my sling install no longer resides on root.
 Is it possible to set a base url of some sort, so if I do import
sling.js in my esp it knows where to look for resources?
 At the moment when I import it it looks to the root :)
 http://localhost:8080/system/sling/info.sessionInfo.json
 Sorry, noob question, still trying to get my head around all of
this..
 Thanks
 Tom

Re: Sling Base Url

Posted by Jos Snellings <Jo...@pandora.be>.
Hi Tom,

Just rename sling webapp to whatever you want the top of your webapp to be.
Tomcat will pick that up.
your urls will look like:
http://localhost:8080/{yourtopname}/{pathtoresource}

Jos


On 09/10/2010 02:51 PM, tom@wamonline.org.uk wrote:
>    BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }Hi
> Guys,
>   I've been playing around with sling on and off for a few weeks and
> in development jetty mode my app runs fine, but I want to deploy to
> tomcat where my sling install no longer resides on root.
>   Is it possible to set a base url of some sort, so if I do import
> sling.js in my esp it knows where to look for resources?
>   At the moment when I import it it looks to the root :)
>   http://localhost:8080/system/sling/info.sessionInfo.json
>   Sorry, noob question, still trying to get my head around all of
> this..
>   Thanks
>   Tom
>
>