Hello!

http://wittywizard.org/media/lw/light-wizzard-in-the-flesh/00-00-G-IAM/image/credits.png
works for me.

Do you use haproxy (latest lines of your message)?

To share same files between several WtHttp instances, use symbolic links.
For example, link /usr/share/Wt/resources from ./doc_root.

Try changing "baseURL" property in wt_config.xml to host whole application
not on "/", but on "/w". Easier way is to use (sub)domains rather than
subpaths.


-
Best regards,
Boris Nagaev


On Fri, Jun 27, 2014 at 5:48 AM, Jeffrey Scott Flesher Gmail <
jeffrey.scott.fles...@gmail.com> wrote:

>  I use httpd only, no Apache or other web server is loaded.
>
> I have a folder structure like this:
> Root (/home/userName) this is where the Executable is
>     - app_root this is where my configuration xml files are
>     -doc_root this is where my resources are
>         -resources
>         -media
>
> Now, I have a resource file (*.js, *.png...) and I have it in an HTML file
> that I connect via an iframe, if I use a run command like this:
> ./WittyWizard.wt --docroot "./doc_root;/media" --approot="./app_root"
> --deploy-path="/ww" --http-address="0.0.0.0" --http-port="8060"
> and in my HTML I do this:
> <img
> src="/media/lw/light-wizzard-in-the-flesh/00-00-G-IAM/image/credits.png" ...
> it works fine
> but if I do this
> <img src="
> http://wittywizard.org/media/lw/light-wizzard-in-the-flesh/00-00-G-IAM/image/credits.png";
> ...
> it does not work
> My problem is that I want to share files between various apps, so the url
> may not be the same, and currently this does not work, I have to host all
> the data per account and use relative paths, is there a way around this
> behavior?
>
> Also on the --deploy-path regarding ?_= vs /ww
> ./WittyWizard.wt --docroot "./doc_root;/media" --approot="./app_root"
> --deploy-path="/" --http-address="0.0.0.0" --http-port="8060"
> Why doesn't this work? I get ?_=
> whereas
> ./WittyWizard.wt --docroot "./doc_root;/media" --approot="./app_root"
> --deploy-path="/ww" --http-address="0.0.0.0" --http-port="8060"
> works
>
> My biggest issues is how do I turn http:wittywizard.org into http:
> wittywizard.org/w
> I have been looking for an haproxy way but do not know how to get this to
> work
>    acl has_ww_uri path_beg -i /ww
>    redirect location /ww code 301 if !has_ww_uri
>    or
>    reqirep ^([^\ :]*)\ /(.*) \1\ /ww\2 if !has_ww_uri
> Any idea's, how do you do it?
>
> Thanks
>
>
> ------------------------------------------------------------------------------
> Open source business process management suite built on Java and Eclipse
> Turn processes into business applications with Bonita BPM Community Edition
> Quickly connect people, data, and systems into organized workflows
> Winner of BOSSIE, CODIE, OW2 and Gartner awards
> http://p.sf.net/sfu/Bonitasoft
> _______________________________________________
> witty-interest mailing list
> witty-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
>
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to