I've been successful using apache in front and doing rewrites on /
gadgets, /social, etc.
I'm new to it though - so would be curious to see what other options
are suggested.
Gregg
On Aug 11, 2010, at 8:07 AM, Christiaan Hees wrote:
Hi,
I'm trying to set up a new container.
I used the samplecontainer as a base except my container is running
on a
different port from Shindig:
Java Shindig is running on localhost:8080
My site is running on localhost:8090
localhost:8090/index.html has 2 script imports:
<script type="text/javascript" src="
http://localhost:8080/gadgets/js/shindig-container:rpc.js?c=1&debug=1&nocache=1
"></script>
<script type="text/javascript" src="js/coincontainer.js"></script>
coincontainer.js works a lot like samplecontainer.js except this
fails:
sendRequestToServer("/gadgets/metadata", "POST",
gadgets.json.stringify(request), opt_callback, true);
because that call gets made to 8090 instead of 8080 so it results in
a 404.
How can I make the cross domain call to 8080?
Is there something I can configure in Shindig so it can use JSONP or
something like that?
Or should I do the call to metadata on the serverside already and
then put
the results in my page?
Would shindig.container.setParentUrl('http://localhost:8090/'); do
anything
that could be related?
Or gadget.setServerBase()?
/Christiaan