Hi folks.
I have two dancer apps (a front end UI, and a backend REST server) that i want to have deployed as separate dancer apps. I'd like to do this using apache. i can do it in any way under apache (i have the freedom to configure things most anyway i need).
I've successfully deployed two apps using two different virtual hosts, however in this case, the frontend app sends pages back to the browser that contain AJAX requests that want to talk directly to the backend app. I can't do this via two different virtual hosts due to same-origin-policy, so i need to deploy both apps under the same virtual host.
Any ideas on how to do this? I've been messing with the config files for a couple of hours, but to no avail. I checked on "the google", and on the dancer website, but the deployment guide only talks about multiple sites on the same host using Plack::Builder and starman, and to be honest, i don't really understand PSGI and Plack.
Thanks a bunch.
...alex...
PS, the latest version of my apache virtual host config can be found at http://paste.perldancer.org/2298W43paS2hg. It kind of works, but i think it only works because depending on how the apache worker was initialized, it's using one or the other dancer app.